forked from AkkomaGang/akkoma
Fix deprecation warnings
This commit is contained in:
parent
1d537bc74f
commit
5d92431350
1 changed files with 3 additions and 3 deletions
|
@ -110,9 +110,9 @@ defp get_opts(opts) do
|
|||
Logger.warn("""
|
||||
Pleroma: configuration `:instance, :strip_exif` is deprecated, please instead set:
|
||||
|
||||
:instance, Pleroma.Upload, [filters: [Pleroma.Upload.Filter.Mogrify]]
|
||||
:pleroma, Pleroma.Upload, [filters: [Pleroma.Upload.Filter.Mogrify]]
|
||||
|
||||
:pleroma, Pleroma.Upload.Mogrify, args: "strip"
|
||||
:pleroma, Pleroma.Upload.Filter.Mogrify, args: "strip"
|
||||
""")
|
||||
|
||||
Pleroma.Config.put([Pleroma.Upload.Filter.Mogrify], args: "strip")
|
||||
|
@ -127,7 +127,7 @@ defp get_opts(opts) do
|
|||
Logger.warn("""
|
||||
Pleroma: configuration `:instance, :dedupe_media` is deprecated, please instead set:
|
||||
|
||||
:instance, Pleroma.Upload, [filters: [Pleroma.Upload.Filter.Dedupe]]
|
||||
:pleroma, Pleroma.Upload, [filters: [Pleroma.Upload.Filter.Dedupe]]
|
||||
""")
|
||||
|
||||
Map.put(opts, :filters, opts.filters ++ [Pleroma.Upload.Filter.Dedupe])
|
||||
|
|
Loading…
Reference in a new issue