aboutsummaryrefslogtreecommitdiffstats
path: root/include/opengraph.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-05-15 15:16:05 +0200
committerMario Vavti <mario@mariovavti.com>2021-05-15 15:16:05 +0200
commit2ee1e2af723ef812a6072fc26c175f1ca5819be5 (patch)
tree90cf55939df0a3f711ca5009f9330fcaca76c734 /include/opengraph.php
parentc3ad21c5486c58ae08aabbbbfbd23afdab15ec0c (diff)
parent635a24dff477548bdcf601874cb1ff2509aef3cc (diff)
downloadvolse-hubzilla-2ee1e2af723ef812a6072fc26c175f1ca5819be5.tar.gz
volse-hubzilla-2ee1e2af723ef812a6072fc26c175f1ca5819be5.tar.bz2
volse-hubzilla-2ee1e2af723ef812a6072fc26c175f1ca5819be5.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'include/opengraph.php')
-rw-r--r--include/opengraph.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/opengraph.php b/include/opengraph.php
index 4c88570d3..465acbd39 100644
--- a/include/opengraph.php
+++ b/include/opengraph.php
@@ -62,6 +62,8 @@
$ogimagetype = $channel['xchan_photo_mimetype'];
}
+ if (! isset(App::$page['htmlhead']))
+ App::$page['htmlhead'] = '';
App::$page['htmlhead'] .= '<meta property="og:title" content="' . htmlspecialchars((isset($ogtitle) ? $ogtitle : $channel['channel_name'])) . '">' . "\r\n";
App::$page['htmlhead'] .= '<meta property="og:image" content="' . $ogimage . '">' . "\r\n";
App::$page['htmlhead'] .= '<meta property="og:image:type" content="' . $ogimagetype . '">' . "\r\n";