summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2024-09-02 12:39:29 +0200
committermarcin mikołajczak <git@mkljczk.pl>2024-09-02 12:39:29 +0200
commit37397a43be7e73efeb1004f59fc9e69bc75da927 (patch)
treefd64698db6d89b9fe4b174a59ec916ae1ab838e6 /priv
parent9077d0925b61b0ba23c0ee5b41627dc91266d52d (diff)
downloadpleroma-37397a43be7e73efeb1004f59fc9e69bc75da927.tar.gz
pleroma-37397a43be7e73efeb1004f59fc9e69bc75da927.zip
scrubbers/default: Allow "mention hashtag" classes used by Mastodon
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'priv')
-rw-r--r--priv/scrubbers/default.ex3
-rw-r--r--priv/scrubbers/twitter_text.ex3
2 files changed, 4 insertions, 2 deletions
diff --git a/priv/scrubbers/default.ex b/priv/scrubbers/default.ex
index a75a6465d..dad9dc1a1 100644
--- a/priv/scrubbers/default.ex
+++ b/priv/scrubbers/default.ex
@@ -22,7 +22,8 @@ defmodule Pleroma.HTML.Scrubber.Default do
"u-url",
"mention",
"u-url mention",
- "mention u-url"
+ "mention u-url",
+ "mention hashtag"
])
Meta.allow_tag_with_this_attribute_values(:a, "rel", [
diff --git a/priv/scrubbers/twitter_text.ex b/priv/scrubbers/twitter_text.ex
index 6e23b3efb..4df840735 100644
--- a/priv/scrubbers/twitter_text.ex
+++ b/priv/scrubbers/twitter_text.ex
@@ -23,7 +23,8 @@ defmodule Pleroma.HTML.Scrubber.TwitterText do
"u-url",
"mention",
"u-url mention",
- "mention u-url"
+ "mention u-url",
+ "mention hashtag"
])
Meta.allow_tag_with_this_attribute_values(:a, "rel", [