forked from YokaiRick/akkoma
Get default scrubbers from config instead of hardcoded
This commit is contained in:
parent
91d5a7e81c
commit
05743e2000
1 changed files with 1 additions and 1 deletions
|
@ -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
|
test "html_filter_policy returns nil when rich-text is enabled" do
|
||||||
user = insert(:user)
|
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
|
end
|
||||||
|
|
||||||
test "html_filter_policy returns TwitterText scrubber when rich-text is disabled" do
|
test "html_filter_policy returns TwitterText scrubber when rich-text is disabled" do
|
||||||
|
|
Loading…
Reference in a new issue