projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c8ffe7
)
added data attrs to twitter scrubber
author
Vald
<maghtpol@gmail.com>
Wed, 5 Dec 2018 20:44:56 +0000
(
02:14
+0530)
committer
Vald
<maghtpol@gmail.com>
Wed, 5 Dec 2018 20:44:56 +0000
(
02:14
+0530)
lib/pleroma/html.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/html.ex
b/lib/pleroma/html.ex
index 271a48b573563933754c2b651e966a5f100c4faa..5daaa5e694fea6375c4bf9eb08a70770c7455da2 100644
(file)
--- 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