From 08a4ffd6633896a75f1aa66c7c310fc6fd991912 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 28 May 2013 04:50:16 -0700 Subject: convert most red photos to zmg --- mod/item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/item.php') 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) { -- cgit v1.2.3