Skip to content
Snippets Groups Projects
Commit 05743e20 authored by rinpatch's avatar rinpatch
Browse files

Get default scrubbers from config instead of hardcoded

parent 91d5a7e8
No related branches found
No related tags found
No related merge requests found
......@@ -709,7 +709,7 @@ test "insert or update a user from given data" do
test "html_filter_policy returns nil when rich-text is enabled" do
user = insert(:user)
assert [Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML.Scrubber.Default] == User.html_filter_policy(user)
assert Pleroma.Config.get([:markup, :scrub_policy]) == User.html_filter_policy(user)
end
test "html_filter_policy returns TwitterText scrubber when rich-text is disabled" do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment