Unify logic for normalizing quoteUri

This commit is contained in:
tusooa 2023-07-10 17:57:09 -04:00
commit b0a7e795e7
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51
4 changed files with 40 additions and 53 deletions

View file

@ -60,7 +60,12 @@ defmodule Pleroma.HTML.Scrubber.Default do
Meta.allow_tag_with_these_attributes(:u, ["lang"])
Meta.allow_tag_with_these_attributes(:ul, ["lang"])
Meta.allow_tag_with_this_attribute_values(:span, "class", ["h-card", "recipients-inline", "quote-inline"])
Meta.allow_tag_with_this_attribute_values(:span, "class", [
"h-card",
"recipients-inline",
"quote-inline"
])
Meta.allow_tag_with_these_attributes(:span, ["lang"])
Meta.allow_tag_with_this_attribute_values(:code, "class", ["inline"])