forked from mirrors/akkoma
format...
This commit is contained in:
parent
cb21bf5fc2
commit
c67cf8e9af
|
@ -10,7 +10,7 @@
|
|||
|
||||
config :pleroma, Pleroma.Repo, types: Pleroma.PostgresTypes
|
||||
|
||||
config :pleroma, Pleroma.Upload,
|
||||
config :pleroma, Pleroma.Upload,
|
||||
uploads: "uploads",
|
||||
strip_exif: false
|
||||
|
||||
|
|
|
@ -83,8 +83,9 @@ def store(%{"img" => "data:image/" <> image_data}, should_dedupe) 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue