From 1a56ecaa393f9cd307c0fc883b6f2d8a17a07718 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Tue, 15 Oct 2019 14:04:24 +0200 Subject: Update opengraph.php --- include/opengraph.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/opengraph.php b/include/opengraph.php index 5360468eb..ba97d4f4f 100644 --- a/include/opengraph.php +++ b/include/opengraph.php @@ -23,7 +23,7 @@ // find first image if exist if(preg_match("/\[[zi]mg(=[0-9]+x[0-9]+)?\]([^\[]+)/is", $item['body'], $matches)) { $ogimage = $matches[2]; - $ogimagetype = guess_image_type($ogimage); + $ogimagetype = guess_image_type($ogimage); } // use summary as description if exist @@ -61,7 +61,7 @@ if(! isset($ogimage)) { $ogimage = $channel['xchan_photo_l']; - $ogimagetype = $channel['xchan_photo_mimetype']; + $ogimagetype = $channel['xchan_photo_mimetype']; } App::$page['htmlhead'] .= '' . "\r\n"; -- cgit v1.2.3