From 0c2657df78b9fe65e01ba4dc027a24d143b6c863 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Sat, 12 Oct 2019 23:42:35 +0200 Subject: Add Opengraph image type detection --- include/opengraph.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/opengraph.php') diff --git a/include/opengraph.php b/include/opengraph.php index ab1c90e57..2d72ffca1 100644 --- a/include/opengraph.php +++ b/include/opengraph.php @@ -56,9 +56,13 @@ $ogdesc = sprintf( t('This is the home page of %s.'), $channel['channel_name']); } } + + if(! isset($ogimage)) + $ogimage = $channel['xchan_photo_l']; App::$page['htmlhead'] .= '' . "\r\n"; - App::$page['htmlhead'] .= '' . "\r\n"; + App::$page['htmlhead'] .= '' . "\r\n"; + App::$page['htmlhead'] .= '' . "\r\n"; App::$page['htmlhead'] .= '' . "\r\n"; App::$page['htmlhead'] .= '' . "\r\n"; -- cgit v1.2.3