diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-05-15 15:16:05 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-05-15 15:16:05 +0200 |
commit | 2ee1e2af723ef812a6072fc26c175f1ca5819be5 (patch) | |
tree | 90cf55939df0a3f711ca5009f9330fcaca76c734 /include/opengraph.php | |
parent | c3ad21c5486c58ae08aabbbbfbd23afdab15ec0c (diff) | |
parent | 635a24dff477548bdcf601874cb1ff2509aef3cc (diff) | |
download | volse-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.php | 2 |
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"; |