]> git.mxchange.org Git - friendica.git/commitdiff
Exclude [attachment] from tag search
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 17 Dec 2022 01:06:37 +0000 (20:06 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 17 Dec 2022 01:06:37 +0000 (20:06 -0500)
src/Content/Text/BBCode.php

index 9be7def903e98fc9f9b21400200ac4df98b60c98..2070d22d131d534b43f3040e6b6683f50f8d3ea1 100644 (file)
@@ -2355,7 +2355,7 @@ class BBCode
                DI::profiler()->startRecording('rendering');
                $ret = [];
 
-               self::performWithEscapedTags($string, ['noparse', 'pre', 'code', 'img'], function ($string) use (&$ret) {
+               self::performWithEscapedTags($string, ['noparse', 'pre', 'code', 'img', 'attachment'], function ($string) use (&$ret) {
                        // Convert hashtag links to hashtags
                        $string = preg_replace('/#\[url\=([^\[\]]*)\](.*?)\[\/url\]/ism', '#$2 ', $string);