aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-06-21 08:52:47 +0000
committerMario <mario@mariovavti.com>2022-06-21 08:52:47 +0000
commita5000ba311e76d5d75a43558646a2aa6236aee49 (patch)
tree66f6dc689341b5b043729396132aaaf95c08bd96 /include
parent5e112b395ddb80b72891361b259b4d3fafa7efc2 (diff)
parent5e2bb874c847b576c79eb648e5bd45319688cfdb (diff)
downloadvolse-hubzilla-a5000ba311e76d5d75a43558646a2aa6236aee49.tar.gz
volse-hubzilla-a5000ba311e76d5d75a43558646a2aa6236aee49.tar.bz2
volse-hubzilla-a5000ba311e76d5d75a43558646a2aa6236aee49.zip
Merge branch 'dev' into 'dev'
Fix Opengraph images inside zmg opening tag See merge request hubzilla/core!2020
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);
}