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 @@ defp write_robots_txt(static_dir, indexable, template_dir) do
|
|||
end
|
||||
|
||||
defp upload_filters(filters) when is_map(filters) do
|
||||
enabled_filters =
|
||||
if filters.strip_metadata do
|
||||
[Pleroma.Upload.Filter.Exiftool.StripMetadata]
|
||||
else
|
||||
[]
|
||||
end
|
||||
enabled_filters = []
|
||||
|
||||
enabled_filters =
|
||||
if filters.read_description do
|
||||
|
@ -338,6 +333,13 @@ defp upload_filters(filters) when is_map(filters) do
|
|||
enabled_filters
|
||||
end
|
||||
|
||||
enabled_filters =
|
||||
if filters.strip_metadata do
|
||||
enabled_filters ++ [Pleroma.Upload.Filter.Exiftool.StripMetadata]
|
||||
else
|
||||
enabled_filters
|
||||
end
|
||||
|
||||
enabled_filters =
|
||||
if filters.anonymize do
|
||||
enabled_filters ++ [Pleroma.Upload.Filter.AnonymizeFilename]
|
||||
|
|
Loading…
Reference in a new issue