projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f9da55
)
shame on me for not testing after revert
author
Rin Toshaka
<rinpatch@sdf.org>
Sun, 30 Dec 2018 19:44:17 +0000
(20:44 +0100)
committer
Rin Toshaka
<rinpatch@sdf.org>
Sun, 30 Dec 2018 19:44:17 +0000
(20:44 +0100)
lib/pleroma/html.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/html.ex
b/lib/pleroma/html.ex
index 44b6776f97dd8702ac6ac32c79267f950ea46967..5e1f5bf96f469c002ca866ba087baaf97440f957 100644
(file)
--- a/
lib/pleroma/html.ex
+++ b/
lib/pleroma/html.ex
@@
-15,8
+15,11
@@
defmodule Pleroma.HTML do
end
def filter_tags(html, nil) do
- get_scrubbers()
- |> Enum.reduce(html, fn scrubber, html ->
+ filter_tags(html, get_scrubbers())
+ end
+
+ def filter_tags(html, scrubbers) when is_list(scrubbers) do
+ Enum.reduce(scrubbers, html, fn scrubber, html ->
filter_tags(html, scrubber)
end)
end