aboutsummaryrefslogtreecommitdiffstats
path: root/include/opengraph.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-05-14 08:56:06 +0000
committerMario <mario@mariovavti.com>2021-05-14 08:56:06 +0000
commita03423794a1a9dc15588d40684fee3bf9a57b629 (patch)
tree072ef73577b3ecefcc85f26c7db41166ffbd3d49 /include/opengraph.php
parentf085c3c98f834bc4e3906c456f1447de2e955118 (diff)
downloadvolse-hubzilla-a03423794a1a9dc15588d40684fee3bf9a57b629.tar.gz
volse-hubzilla-a03423794a1a9dc15588d40684fee3bf9a57b629.tar.bz2
volse-hubzilla-a03423794a1a9dc15588d40684fee3bf9a57b629.zip
Random PHP 8 fixes
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";