From: Mikael Nordfeldth Date: Thu, 14 Jan 2016 01:09:12 +0000 (+0100) Subject: Fake oEmbed version in OpenGraph return object X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=53339ff463b3a4ddfb2cfb7d73bfeac5b68eefd3;p=quix0rs-gnu-social.git Fake oEmbed version in OpenGraph return object --- diff --git a/plugins/Oembed/lib/opengraphhelper.php b/plugins/Oembed/lib/opengraphhelper.php index ccc1c2b546..402f4b6a9f 100644 --- a/plugins/Oembed/lib/opengraphhelper.php +++ b/plugins/Oembed/lib/opengraphhelper.php @@ -28,6 +28,8 @@ class OpenGraphHelper static function ogFromHtml(DOMDocument $dom) { $obj = new stdClass(); + $obj->version = '1.0'; // fake it til u make it + $nodes = $dom->getElementsByTagName('meta'); for ($i = 0; $i < $nodes->length; $i++) { $node = $nodes->item($i);