Skip to content

Commit

Permalink
Merge branch 'scrubbers-allow-mention-hashtag' into 'develop'
Browse files Browse the repository at this point in the history
scrubbers/default: Allow "mention hashtag" classes used by Mastodon

See merge request pleroma/pleroma!4245
  • Loading branch information
mkljczk committed Sep 2, 2024
2 parents 9077d09 + 37397a4 commit fecfe8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/scrubbers-allow-mention-hashtag.add
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scrubbers/default: Allow "mention hashtag" classes used by Mastodon
3 changes: 2 additions & 1 deletion priv/scrubbers/default.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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", [
Expand Down
3 changes: 2 additions & 1 deletion priv/scrubbers/twitter_text.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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", [
Expand Down

0 comments on commit fecfe8b

Please sign in to comment.