Revert/simplify.

We only need to check the content-type. There's no chance a webp file
will get mismatched as another image type.
This commit is contained in:
Mark Felder 2020-09-04 22:18:01 -05:00 committed by rinpatch
commit 4ea07f74e9
2 changed files with 4 additions and 18 deletions

View file

@ -37,12 +37,6 @@ defmodule Pleroma.Upload.Filter.ExiftoolTest do
content_type: "image/webp"
}
bad_type = %Pleroma.Upload{
name: "sample.webp",
content_type: "image/jpeg"
}
assert Filter.Exiftool.filter(upload) == {:ok, :noop}
assert Filter.Exiftool.filter(bad_type) == {:ok, :noop}
end
end