From: Hypolite Petovan Date: Tue, 1 Feb 2022 13:20:45 +0000 (-0500) Subject: Add rel="tag" to the HTML Purifier allow list in BBCode::convert X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=237492979c175f2237ffd6c09cafc037d07ae89a;p=friendica.git Add rel="tag" to the HTML Purifier allow list in BBCode::convert - This enables Mastodon to recognize hashtag links and prevent unwarranted link previews --- diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php index 4eed07718d..ae9452abb0 100644 --- a/src/Content/Text/HTML.php +++ b/src/Content/Text/HTML.php @@ -984,6 +984,7 @@ class HTML $config->set('Attr.AllowedRel', [ 'noreferrer' => true, 'noopener' => true, + 'tag' => true, ]); $config->set('Attr.AllowedFrameTargets', [ '_blank' => true,