Read description before stripping metadata
This commit is contained in:
parent
9da0fe930e
commit
09d3ccf770
1 changed files with 8 additions and 6 deletions
|
@ -324,12 +324,7 @@ defmodule Mix.Tasks.Pleroma.Instance do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp upload_filters(filters) when is_map(filters) do
|
defp upload_filters(filters) when is_map(filters) do
|
||||||
enabled_filters =
|
enabled_filters = []
|
||||||
if filters.strip_metadata do
|
|
||||||
[Pleroma.Upload.Filter.Exiftool.StripMetadata]
|
|
||||||
else
|
|
||||||
[]
|
|
||||||
end
|
|
||||||
|
|
||||||
enabled_filters =
|
enabled_filters =
|
||||||
if filters.read_description do
|
if filters.read_description do
|
||||||
|
@ -338,6 +333,13 @@ defmodule Mix.Tasks.Pleroma.Instance do
|
||||||
enabled_filters
|
enabled_filters
|
||||||
end
|
end
|
||||||
|
|
||||||
|
enabled_filters =
|
||||||
|
if filters.strip_metadata do
|
||||||
|
enabled_filters ++ [Pleroma.Upload.Filter.Exiftool.StripMetadata]
|
||||||
|
else
|
||||||
|
enabled_filters
|
||||||
|
end
|
||||||
|
|
||||||
enabled_filters =
|
enabled_filters =
|
||||||
if filters.anonymize do
|
if filters.anonymize do
|
||||||
enabled_filters ++ [Pleroma.Upload.Filter.AnonymizeFilename]
|
enabled_filters ++ [Pleroma.Upload.Filter.AnonymizeFilename]
|
||||||
|
|
Loading…
Reference in a new issue