aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTristan Mahé <gled@remote-shell.net>2018-06-26 13:49:57 -0700
committerTristan Mahé <gled@remote-shell.net>2018-06-26 13:49:57 -0700
commitc67cf8e9af3ab9b52f34387a686a68ee4e1554b4 (patch)
tree743008469dead8ed3922e494f29c6ae4191a3b49 /lib
parentcb21bf5fc225899ad6cf87f5ab0253506cf0531e (diff)
downloadpleroma-c67cf8e9af3ab9b52f34387a686a68ee4e1554b4.tar.gz
format...
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/upload.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/upload.ex b/lib/pleroma/upload.ex
index dee281f5b..e412e43fa 100644
--- a/lib/pleroma/upload.ex
+++ b/lib/pleroma/upload.ex
@@ -83,8 +83,9 @@ defmodule Pleroma.Upload do
def strip_exif_data(file) do
settings = Application.get_env(:pleroma, Pleroma.Upload)
@do_strip = Keyword.fetch!(settings, :strip_exif)
+
if @do_strip == true do
- Mogrify.open(file) |> Mogrify.custom("strip") |> Mogrify.save(in_place: true)
+ Mogrify.open(file) |> Mogrify.custom("strip") |> Mogrify.save(in_place: true)
end
end