fix "exiftool not support svg files' (#421)
authorihor <ikandreew@gmail.com>
Thu, 5 Jan 2023 15:22:48 +0000 (15:22 +0000)
committerfloatingghost <hannah@coffee-and-dreams.uk>
Thu, 5 Jan 2023 15:22:48 +0000 (15:22 +0000)
commitb98fe4476c13f213f5a4c928b7946516374e133b
tree5912114698b539a771f006e5162964a37188450e
parent336d06b2a8ca75362578b1d67ea1f32a45c8edd3
fix "exiftool not support svg files' (#421)

Faced with this issue today, Pleroma responds with status 400 (Bad request) if Exiftool.StripLocation is added to the list of filter modules for uploads. Here is logs:

```
13:27:25.201 [info] POST /api/v1/media

13:27:25.232 request_id=FzdspaAnrA6cyv0APgVR [error] Elixir.Pleroma.Upload.Filter: Filter Elixir.Pleroma.Upload.Filter.Exiftool.StripLocation failed: {:error, "Elixir.Pleroma.Upload.Filter.Exiftool.StripLocation: %ErlangError{original: :enoent}"}

13:27:25.232 request_id=FzdspaAnrA6cyv0APgVR [error] Elixir.Pleroma.Upload store (using Pleroma.Uploaders.Local) failed: "Elixir.Pleroma.Upload.Filter.Exiftool.StripLocation: %ErlangError{original: :enoent}"
```

# This fix solves this problem.

Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/421
Co-authored-by: ihor <ikandreew@gmail.com>
Co-committed-by: ihor <ikandreew@gmail.com>
lib/pleroma/upload/filter/exiftool.ex