pleroma.instance: Fix Exiftool module name
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 14 Nov 2020 21:27:13 +0000 (22:27 +0100)
committerlain <lain@soykaf.club>
Tue, 22 Dec 2020 19:48:19 +0000 (20:48 +0100)
CHANGELOG.md
lib/mix/tasks/pleroma/instance.ex
test/mix/tasks/pleroma/instance_test.exs

index 051050a9489ba6bfa6f4923db44a40d71a14104b..4bf0ba96418ad3d6cf97c91555675975987f09d7 100644 (file)
@@ -67,6 +67,9 @@ switched to a new configuration mechanism, however it was not officially removed
 3. Restart Pleroma
 
 
+### 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