projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2df0fd1
)
maybe I should learn proper elixir ;D
author
Tristan Mahé
<gled@remote-shell.net>
Tue, 26 Jun 2018 21:35:35 +0000
(14:35 -0700)
committer
Tristan Mahé
<gled@remote-shell.net>
Tue, 26 Jun 2018 21:35:35 +0000
(14:35 -0700)
lib/pleroma/upload.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/upload.ex
b/lib/pleroma/upload.ex
index 1640c1f9cccc9d3e7544e8d761f6e43d09e7a00c..45fac90604e7f6d98b247849ad6207c5dd353dfa 100644
(file)
--- a/
lib/pleroma/upload.ex
+++ b/
lib/pleroma/upload.ex
@@
-86,10
+86,10
@@
defmodule Pleroma.Upload do
def strip_exif_data(content_type, file) do
settings = Application.get_env(:pleroma, Pleroma.Upload)
-
@
do_strip = Keyword.fetch!(settings, :strip_exif)
+ do_strip = Keyword.fetch!(settings, :strip_exif)
[filetype, ext] = String.split(content_type, "/")
- if filetype == "image" and
@
do_strip == true do
+ if filetype == "image" and do_strip == true do
Mogrify.open(file) |> Mogrify.custom("strip") |> Mogrify.save(in_place: true)
end
end