From 53339ff463b3a4ddfb2cfb7d73bfeac5b68eefd3 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 14 Jan 2016 02:09:12 +0100 Subject: [PATCH] Fake oEmbed version in OpenGraph return object --- plugins/Oembed/lib/opengraphhelper.php | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5