git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 53339ff4 authored by mmn's avatar mmn

Fake oEmbed version in OpenGraph return object

parent 331abf17
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment