aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2022-06-14 23:19:09 +0200
committerMax Kostikov <max@kostikov.co>2022-06-14 23:19:09 +0200
commit5e2bb874c847b576c79eb648e5bd45319688cfdb (patch)
treeea233c0b5702d41abcf6aa96646ca1251782b63e /include
parentf0e4b4dc84bc4351c9de1257559f1c3a7673f6d6 (diff)
downloadvolse-hubzilla-5e2bb874c847b576c79eb648e5bd45319688cfdb.tar.gz
volse-hubzilla-5e2bb874c847b576c79eb648e5bd45319688cfdb.tar.bz2
volse-hubzilla-5e2bb874c847b576c79eb648e5bd45319688cfdb.zip
Fix Opengraph images inside zmg opening tag
Diffstat (limited to 'include')
-rw-r--r--include/opengraph.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/opengraph.php b/include/opengraph.php
index 465acbd39..f62970c5d 100644
--- a/include/opengraph.php
+++ b/include/opengraph.php
@@ -21,7 +21,7 @@
$ogtitle = $item['title'];
// find first image if exist
- if(preg_match("/\[[zi]mg(=[0-9]+x[0-9]+)?\]([^\[]+)/is", $item['body'], $matches)) {
+ if (preg_match("/\[[zi]mg(=[0-9]+x[0-9]+)?\]([^\[]+)/is", $item['body'], $matches) || preg_match("/\[[zi]mg(=)([^\]]+)/is", $item['body'], $matches)) {
$ogimage = $matches[2];
$ogimagetype = guess_image_type($ogimage);
}