Add rel="tag" to the HTML Purifier allow list in BBCode::convert

- This enables Mastodon to recognize hashtag links and prevent unwarranted link previews
This commit is contained in:
Hypolite Petovan 2022-02-01 08:20:45 -05:00
parent 52f5e94bdb
commit 237492979c

View file

@ -984,6 +984,7 @@ class HTML
$config->set('Attr.AllowedRel', [
'noreferrer' => true,
'noopener' => true,
'tag' => true,
]);
$config->set('Attr.AllowedFrameTargets', [
'_blank' => true,