diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-09-17 15:22:46 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-09-19 14:56:10 +0700 |
commit | cf3041220a7a14dc3fac24177fac1f4aecc77f5f (patch) | |
tree | 5ba6eb2a977e405ac2dc04175385cd9ccc6e740b /lib | |
parent | f95a2b2cda236f7c0e5ced2a4698e2b10d99fa53 (diff) | |
download | pleroma-cf3041220a7a14dc3fac24177fac1f4aecc77f5f.tar.gz |
Add support for `rel="ugc"`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/html.ex | 6 |
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"]) |