summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2021-01-14 17:49:37 -0600
committerMark Felder <feld@feld.me>2021-01-14 17:49:37 -0600
commitd0e0396528c55f1b61c1d48452e855ea69ec3e89 (patch)
tree739a36d799416e2004b2cef86729fa0435f769d2 /lib
parent0b725f5d216cfd2b11f81cddd792338c23161a60 (diff)
downloadpleroma-d0e0396528c55f1b61c1d48452e855ea69ec3e89.tar.gz
pleroma-d0e0396528c55f1b61c1d48452e855ea69ec3e89.zip
Hack to fix tests not passing. Unclear why the filters are being set to nil.
Both of these changes are needed or it doesn't work.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/upload/filter.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/upload/filter.ex b/lib/pleroma/upload/filter.ex
index 661135634..367acd214 100644
--- a/lib/pleroma/upload/filter.ex
+++ b/lib/pleroma/upload/filter.ex
@@ -43,4 +43,6 @@ defmodule Pleroma.Upload.Filter do
error
end
end
+
+ def filter(nil, upload), do: filter([], upload)
end