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
1 changed files with 1 additions and 0 deletions

View File

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