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 @@ def get_scrubbers() 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