]> git.mxchange.org Git - friendica.git/commitdiff
Add rel="tag" to the HTML Purifier allow list in BBCode::convert
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 1 Feb 2022 13:20:45 +0000 (08:20 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 1 Feb 2022 13:20:45 +0000 (08:20 -0500)
- This enables Mastodon to recognize hashtag links and prevent unwarranted link previews

src/Content/Text/HTML.php

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