scrubbers/default: Allow "mention hashtag" classes used by Mastodon

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-09-02 12:39:29 +02:00
parent 9077d0925b
commit 37397a43be
3 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1 @@
scrubbers/default: Allow "mention hashtag" classes used by Mastodon

View file

@ -22,7 +22,8 @@ defmodule Pleroma.HTML.Scrubber.Default do
"u-url", "u-url",
"mention", "mention",
"u-url mention", "u-url mention",
"mention u-url" "mention u-url",
"mention hashtag"
]) ])
Meta.allow_tag_with_this_attribute_values(:a, "rel", [ Meta.allow_tag_with_this_attribute_values(:a, "rel", [

View file

@ -23,7 +23,8 @@ defmodule Pleroma.HTML.Scrubber.TwitterText do
"u-url", "u-url",
"mention", "mention",
"u-url mention", "u-url mention",
"mention u-url" "mention u-url",
"mention hashtag"
]) ])
Meta.allow_tag_with_this_attribute_values(:a, "rel", [ Meta.allow_tag_with_this_attribute_values(:a, "rel", [