insert object defaults for fake activities and make credo happy

This commit is contained in:
rinpatch 2019-04-01 12:16:51 +03:00
commit 975482f091
2 changed files with 24 additions and 14 deletions

View file

@ -49,7 +49,7 @@ defmodule Pleroma.HTML do
def ensure_scrubbed_html(
content,
scrubbers,
_fake = false
false = _fake
) do
{:commit, filter_tags(content, scrubbers)}
end
@ -57,7 +57,7 @@ defmodule Pleroma.HTML do
def ensure_scrubbed_html(
content,
scrubbers,
_fake = true
true = _fake
) do
{:ignore, filter_tags(content, scrubbers)}
end