From b1338548b05243c8c73902999d135b8ba980d4ce Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 12 Apr 2014 13:14:39 +0200 Subject: [PATCH] Don't show embedded page information for statusnet groups. --- include/items.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/items.php b/include/items.php index 1516c12015..27be613d70 100755 --- a/include/items.php +++ b/include/items.php @@ -914,10 +914,10 @@ function add_page_info_to_body($body, $texturl = false, $no_photos = false) { $URLSearchString = "^\[\]"; // Adding these spaces is a quick hack due to my problems with regular expressions :) - preg_match("/[^@#]\[url\]([$URLSearchString]*)\[\/url\]/ism", " ".$body, $matches); + preg_match("/[^!#@]\[url\]([$URLSearchString]*)\[\/url\]/ism", " ".$body, $matches); if (!$matches) - preg_match("/[^@#]\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", " ".$body, $matches); + preg_match("/[^!#@]\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", " ".$body, $matches); // Convert urls without bbcode elements if (!$matches AND $texturl) {