pleroma.instance: Fix Exiftool module name
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 14 Nov 2020 21:27:13 +0000 (22:27 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 14 Nov 2020 21:31:01 +0000 (22:31 +0100)
CHANGELOG.md
lib/mix/tasks/pleroma/instance.ex
test/mix/tasks/pleroma/instance_test.exs

index b619bd8916da36eb3c8ed11d813e211d638050cc..ab73de0eade4e1059c57e4e2aabaf14c41d8bb5a 100644 (file)
@@ -72,6 +72,9 @@ switched to a new configuration mechanism, however it was not officially removed
 ### Changed
 - API: Empty parameter values for integer parameters are now ignored in non-strict validaton mode.
 
+### Fixes
+- Config generation: rename `Pleroma.Upload.Filter.ExifTool` to `Pleroma.Upload.Filter.Exiftool`
+
 ## [2.1.2] - 2020-09-17
 
 ### Security
index fc21ae06255b88677088beb4270d6871e6a5e30c..ac8688424cc84942908b06feb39a5a0141980913 100644 (file)
@@ -284,7 +284,7 @@ defmodule Mix.Tasks.Pleroma.Instance do
   defp upload_filters(filters) when is_map(filters) do
     enabled_filters =
       if filters.strip do
-        [Pleroma.Upload.Filter.ExifTool]
+        [Pleroma.Upload.Filter.Exiftool]
       else
         []
       end
index 8a02710ee2b336e7aed49b167de6217c711c6500..6580fc932b831a5515cf76c6da870d58fbd18687 100644 (file)
@@ -88,7 +88,7 @@ defmodule Mix.Tasks.Pleroma.InstanceTest do
     assert generated_config =~ "password: \"dbpass\""
     assert generated_config =~ "configurable_from_database: true"
     assert generated_config =~ "http: [ip: {127, 0, 0, 1}, port: 4000]"
-    assert generated_config =~ "filters: [Pleroma.Upload.Filter.ExifTool]"
+    assert generated_config =~ "filters: [Pleroma.Upload.Filter.Exiftool]"
     assert File.read!(tmp_path() <> "setup.psql") == generated_setup_psql()
     assert File.exists?(Path.expand("./test/instance/static/robots.txt"))
   end