aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-09-17 15:22:46 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-09-19 14:56:10 +0700
commitcf3041220a7a14dc3fac24177fac1f4aecc77f5f (patch)
tree5ba6eb2a977e405ac2dc04175385cd9ccc6e740b /lib
parentf95a2b2cda236f7c0e5ced2a4698e2b10d99fa53 (diff)
downloadpleroma-cf3041220a7a14dc3fac24177fac1f4aecc77f5f.tar.gz
Add support for `rel="ugc"`
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/html.ex6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pleroma/html.ex b/lib/pleroma/html.ex
index 3951f0f51..937bafed5 100644
--- a/lib/pleroma/html.ex
+++ b/lib/pleroma/html.ex
@@ -184,7 +184,8 @@ defmodule Pleroma.HTML.Scrubber.Default do
"tag",
"nofollow",
"noopener",
- "noreferrer"
+ "noreferrer",
+ "ugc"
])
Meta.allow_tag_with_these_attributes("a", ["name", "title"])
@@ -304,7 +305,8 @@ defmodule Pleroma.HTML.Scrubber.LinksOnly do
"nofollow",
"noopener",
"noreferrer",
- "me"
+ "me",
+ "ugc"
])
Meta.allow_tag_with_these_attributes("a", ["name", "title"])