]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Text/BBCode.php
Hashtag handling with Diaspora improved
[friendica.git] / src / Content / Text / BBCode.php
index 334efb32a78dd4f7fc904b78320d20edf542b859..601bf63b25e23dc2ee1250fbe7473da736052424 100644 (file)
@@ -2100,7 +2100,7 @@ class BBCode
                $ret = [];
 
                // Convert hashtag links to hashtags
-               $string = preg_replace('/#\[url\=([^\[\]]*)\](.*?)\[\/url\]/ism', '#$2', $string);
+               $string = preg_replace('/#\[url\=([^\[\]]*)\](.*?)\[\/url\]/ism', '#$2 ', $string);
 
                // ignore anything in a code block
                $string = preg_replace('/\[code.*?\].*?\[\/code\]/sm', '', $string);