Add various both-ugc-and-tag setups

This commit is contained in:
FloatingGhost 2023-09-15 11:58:56 +01:00
parent c8e08e9cc3
commit 3e7446d177
3 changed files with 9 additions and 3 deletions

View File

@ -26,7 +26,9 @@ defmodule Pleroma.HTML.Scrubber.Default do
"nofollow", "nofollow",
"noopener", "noopener",
"noreferrer", "noreferrer",
"ugc" "ugc",
"tag ugc",
"ugc tag"
]) ])
Meta.allow_tag_with_these_attributes(:a, ["name", "title"]) Meta.allow_tag_with_these_attributes(:a, ["name", "title"])

View File

@ -19,7 +19,9 @@ defmodule Pleroma.HTML.Scrubber.LinksOnly do
"noopener", "noopener",
"noreferrer", "noreferrer",
"me", "me",
"ugc" "ugc",
"tag ugc",
"ugc tag"
]) ])
Meta.allow_tag_with_these_attributes(:a, ["name", "title"]) Meta.allow_tag_with_these_attributes(:a, ["name", "title"])

View File

@ -26,7 +26,9 @@ defmodule Pleroma.HTML.Scrubber.TwitterText do
"tag", "tag",
"nofollow", "nofollow",
"noopener", "noopener",
"noreferrer" "noreferrer",
"tag ugc",
"ugc tag"
]) ])
Meta.allow_tag_with_these_attributes(:a, ["name", "title"]) Meta.allow_tag_with_these_attributes(:a, ["name", "title"])