aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVald <maghtpol@gmail.com>2018-12-06 02:14:56 +0530
committerVald <maghtpol@gmail.com>2018-12-06 02:14:56 +0530
commit194869c7db1d31b139254d3a0c6a449cee0068fe (patch)
treec3c92fca2974539ca0f63d5e13c71b88dfc83b51
parent3c8ffe7ed326f4c0bc515f35c905b405e90391b0 (diff)
downloadpleroma-194869c7db1d31b139254d3a0c6a449cee0068fe.tar.gz
added data attrs to twitter scrubber
-rw-r--r--lib/pleroma/html.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/html.ex b/lib/pleroma/html.ex
index 271a48b57..5daaa5e69 100644
--- a/lib/pleroma/html.ex
+++ b/lib/pleroma/html.ex
@@ -45,7 +45,7 @@ defmodule Pleroma.HTML.Scrubber.TwitterText do
Meta.strip_comments()
# links
- Meta.allow_tag_with_uri_attributes("a", ["href"], @valid_schemes)
+ Meta.allow_tag_with_uri_attributes("a", ["href", "data-user", "data-tag"], @valid_schemes)
Meta.allow_tag_with_these_attributes("a", ["name", "title"])
# paragraphs and linebreaks