aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-10-15 14:04:24 +0200
committerMax Kostikov <max@kostikov.co>2019-10-15 14:04:24 +0200
commit1a56ecaa393f9cd307c0fc883b6f2d8a17a07718 (patch)
treea1e817b040fca09a5bd9162652ec285d9eda7fb2 /include
parentd778c3cf1992c51bf394308a944961fc863fb4be (diff)
downloadvolse-hubzilla-1a56ecaa393f9cd307c0fc883b6f2d8a17a07718.tar.gz
volse-hubzilla-1a56ecaa393f9cd307c0fc883b6f2d8a17a07718.tar.bz2
volse-hubzilla-1a56ecaa393f9cd307c0fc883b6f2d8a17a07718.zip
Update opengraph.php
Diffstat (limited to 'include')
-rw-r--r--include/opengraph.php4
1 files changed, 2 insertions, 2 deletions
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'] .= '<meta property="og:title" content="' . htmlspecialchars((isset($ogtitle) ? $ogtitle : $channel['channel_name'])) . '">' . "\r\n";