format...

This commit is contained in:
Tristan Mahé 2018-06-26 13:49:57 -07:00
parent cb21bf5fc2
commit c67cf8e9af
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,7 @@ config :pleroma, ecto_repos: [Pleroma.Repo]
config :pleroma, Pleroma.Repo, types: Pleroma.PostgresTypes config :pleroma, Pleroma.Repo, types: Pleroma.PostgresTypes
config :pleroma, Pleroma.Upload, config :pleroma, Pleroma.Upload,
uploads: "uploads", uploads: "uploads",
strip_exif: false strip_exif: false

View file

@ -83,8 +83,9 @@ defmodule Pleroma.Upload do
def strip_exif_data(file) do def strip_exif_data(file) do
settings = Application.get_env(:pleroma, Pleroma.Upload) settings = Application.get_env(:pleroma, Pleroma.Upload)
@do_strip = Keyword.fetch!(settings, :strip_exif) @do_strip = Keyword.fetch!(settings, :strip_exif)
if @do_strip == true do 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
end end