Get default scrubbers from config instead of hardcoded
authorrinpatch <rinpatch@sdf.org>
Sun, 30 Dec 2018 21:12:14 +0000 (00:12 +0300)
committerrinpatch <rinpatch@sdf.org>
Sun, 30 Dec 2018 21:12:14 +0000 (00:12 +0300)
test/user_test.exs

index ef652daf7da63e84a4fa50996cd3dd3a4b0a2f11..bd40d7f85ac506aefbe5824b79e0a0c53d906b83 100644 (file)
@@ -709,7 +709,7 @@ defmodule Pleroma.UserTest 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