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:
parent
52f5e94bdb
commit
237492979c
|
@ -984,6 +984,7 @@ class HTML
|
|||
$config->set('Attr.AllowedRel', [
|
||||
'noreferrer' => true,
|
||||
'noopener' => true,
|
||||
'tag' => true,
|
||||
]);
|
||||
$config->set('Attr.AllowedFrameTargets', [
|
||||
'_blank' => true,
|
||||
|
|
Loading…
Reference in New Issue
Block a user