aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/upload.ex
diff options
context:
space:
mode:
authorTristan Mahé <gled@remote-shell.net>2018-06-26 14:35:35 -0700
committerTristan Mahé <gled@remote-shell.net>2018-06-26 14:35:35 -0700
commitca63585a329f0afa02f7d539328f5fb3485d2a29 (patch)
tree0d68aede4498c812e2f84c77f3a8abf970ba0134 /lib/pleroma/upload.ex
parent2df0fd1462c7fed0fe80bafecdfc72309025c943 (diff)
downloadpleroma-ca63585a329f0afa02f7d539328f5fb3485d2a29.tar.gz
maybe I should learn proper elixir ;D
Diffstat (limited to 'lib/pleroma/upload.ex')
-rw-r--r--lib/pleroma/upload.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/upload.ex b/lib/pleroma/upload.ex
index 1640c1f9c..45fac9060 100644
--- 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