]> git.mxchange.org Git - friendica.git/commitdiff
Don't show embedded page information for statusnet groups.
authorMichael Vogel <icarus@dabo.de>
Sat, 12 Apr 2014 11:14:39 +0000 (13:14 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 12 Apr 2014 11:14:39 +0000 (13:14 +0200)
include/items.php

index 1516c1201514cf8fa1954de869d62bd4d2bf378b..27be613d70996e082360efee9b57ecc53eb8ead2 100755 (executable)
@@ -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) {