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:
parent
216c84a8f4
commit
4ea07f74e9
2 changed files with 4 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue