]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fake oEmbed version in OpenGraph return object
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 14 Jan 2016 01:09:12 +0000 (02:09 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 14 Jan 2016 01:09:12 +0000 (02:09 +0100)
plugins/Oembed/lib/opengraphhelper.php

index ccc1c2b5466c4aa9f0e69dd7d34de53272e07a79..402f4b6a9fe9feba3cdb29f381fc42107440f9a1 100644 (file)
@@ -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);