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', [
|
$config->set('Attr.AllowedRel', [
|
||||||
'noreferrer' => true,
|
'noreferrer' => true,
|
||||||
'noopener' => true,
|
'noopener' => true,
|
||||||
|
'tag' => true,
|
||||||
]);
|
]);
|
||||||
$config->set('Attr.AllowedFrameTargets', [
|
$config->set('Attr.AllowedFrameTargets', [
|
||||||
'_blank' => true,
|
'_blank' => true,
|
||||||
|
|
Loading…
Reference in a new issue