Ensure full URLs for relative path images for social meta data
https://bugs.webkit.org/show_bug.cgi?id=206382

Reviewed by Devin Rousso.

* wp-content/plugins/social-meta.php:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@254731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Websites/webkit.org/ChangeLog b/Websites/webkit.org/ChangeLog
index 1854bc6..f6452e9 100644
--- a/Websites/webkit.org/ChangeLog
+++ b/Websites/webkit.org/ChangeLog
@@ -1,5 +1,14 @@
 2020-01-16  Jon Davis  <jond@apple.com>
 
+        Ensure full URLs for relative path images for social meta data
+        https://bugs.webkit.org/show_bug.cgi?id=206382
+
+        Reviewed by Devin Rousso.
+
+        * wp-content/plugins/social-meta.php:
+
+2020-01-16  Jon Davis  <jond@apple.com>
+
         Add support for categories and custom post types to the social meta plugin
         https://bugs.webkit.org/show_bug.cgi?id=206327
 
diff --git a/Websites/webkit.org/wp-content/plugins/social-meta.php b/Websites/webkit.org/wp-content/plugins/social-meta.php
index 1dd728c..d3f5ea7 100644
--- a/Websites/webkit.org/wp-content/plugins/social-meta.php
+++ b/Websites/webkit.org/wp-content/plugins/social-meta.php
@@ -73,6 +73,9 @@
         $published_time = get_the_time('c');
         $modified_time = get_the_modified_date('c');
     }
+
+    if ($image_url[0] === '/')
+        $image_url = get_home_url(null, $image_url);
 ?>
 
     <!-- Schema.org markup -->