aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-28 04:50:16 -0700
committerfriendica <info@friendica.com>2013-05-28 04:50:16 -0700
commit08a4ffd6633896a75f1aa66c7c310fc6fd991912 (patch)
treedd6bcff6137bceef34283ecfc684b2435b5bd406 /mod/item.php
parente81e11382f9c746c59fa11b3baef401f8c328cd4 (diff)
downloadvolse-hubzilla-08a4ffd6633896a75f1aa66c7c310fc6fd991912.tar.gz
volse-hubzilla-08a4ffd6633896a75f1aa66c7c310fc6fd991912.tar.bz2
volse-hubzilla-08a4ffd6633896a75f1aa66c7c310fc6fd991912.zip
convert most red photos to zmg
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index 6678930ec..b09ee06f3 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -936,8 +936,8 @@ function fix_attached_photo_permissions($uid,$xchan_hash,$body,
$str_contact_allow,$str_group_allow,$str_contact_deny,$str_group_deny) {
$match = null;
-
- if(preg_match_all("/\[img\](.*?)\[\/img\]/",$body,$match)) {
+ // match img and zmg image links
+ if(preg_match_all("/\[[zi]mg\](.*?)\[\/[zi]mg\]/",$body,$match)) {
$images = $match[1];
if($images) {
foreach($images as $image) {