From: Hypolite Petovan Date: Sat, 17 Dec 2022 01:06:37 +0000 (-0500) Subject: Exclude [attachment] from tag search X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d609d70bd23a0665fa5dd138630a30731589e56d;p=friendica.git Exclude [attachment] from tag search --- diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 9be7def903..2070d22d13 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -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);