aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRin Toshaka <rinpatch@sdf.org>2018-12-30 20:44:17 +0100
committerRin Toshaka <rinpatch@sdf.org>2018-12-30 20:44:17 +0100
commitc50353e6aef5ec482a427298fb20b1b75c208bca (patch)
tree5f5db8dcd384707b4543a8eb63820f56910fea5b /lib
parent3f9da55adc9798bd66749dcdbd02fded8494fda3 (diff)
downloadpleroma-c50353e6aef5ec482a427298fb20b1b75c208bca.tar.gz
shame on me for not testing after revert
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/html.ex7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/pleroma/html.ex b/lib/pleroma/html.ex
index 44b6776f9..5e1f5bf96 100644
--- 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