From 95df8e3c86fd66010a66001d676d8f714a4bf3d1 Mon Sep 17 00:00:00 2001 From: n Date: Sat, 11 Feb 2017 18:32:39 +0100 Subject: [PATCH] open graph support for shaarli (oops) --- shaarli_OleG.0.8.3.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shaarli_OleG.0.8.3.patch b/shaarli_OleG.0.8.3.patch index c47b878..ba67288 100644 --- a/shaarli_OleG.0.8.3.patch +++ b/shaarli_OleG.0.8.3.patch @@ -1,5 +1,5 @@ ---- /root/Shaarli/index.php 2017-01-20 16:47:36.000000000 +0100 -+++ index.php 2017-02-11 18:19:24.618226000 +0100 +--- Shaarli/index.php 2017-01-20 16:47:36.000000000 +0100 ++++ index.php 2017-02-11 18:29:08.779509000 +0100 @@ -1821,11 +1821,16 @@ $path = parse_url($url,PHP_URL_PATH); if ("/talks/" !== substr($path,0,7)) return array(); // This is not a single video URL. @@ -43,7 +43,7 @@ + // Extract the link to the thumbnail + $doc = new DOMDocument(); + libxml_use_internal_errors(true); -+ $doc->loadHTML($headers); ++ $doc->loadHTML($content); + foreach( $doc->getElementsByTagName('meta') as $meta ) + if ($meta->getAttribute('property') == 'og:image') + $imageurl=$meta->getAttribute('content');