From 237492979c175f2237ffd6c09cafc037d07ae89a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 1 Feb 2022 08:20:45 -0500 Subject: [PATCH] Add rel="tag" to the HTML Purifier allow list in BBCode::convert - This enables Mastodon to recognize hashtag links and prevent unwarranted link previews --- src/Content/Text/HTML.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php index 4eed07718..ae9452abb 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,