summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2023-08-19 20:33:42 +0200
committermarcin mikołajczak <git@mkljczk.pl>2023-08-20 13:00:13 +0200
commitc160ef7b6a4c8d214a7abbb5054993341ee66b2c (patch)
tree2196f07e3f1b83389e0de9028ab4ebca7a15c6c0 /lib
parent62340b50b57eeab0b7ab4093e07d05080991bfc4 (diff)
downloadpleroma-c160ef7b6a4c8d214a7abbb5054993341ee66b2c.tar.gz
pleroma-c160ef7b6a4c8d214a7abbb5054993341ee66b2c.zip
Remove test
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/ecto_type/activity_pub/object_validators/map_of_string.ex2
-rw-r--r--lib/pleroma/web/activity_pub/object_validators/common_fixes.ex2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/ecto_type/activity_pub/object_validators/map_of_string.ex b/lib/pleroma/ecto_type/activity_pub/object_validators/map_of_string.ex
index e86275f92..96b7f2da6 100644
--- a/lib/pleroma/ecto_type/activity_pub/object_validators/map_of_string.ex
+++ b/lib/pleroma/ecto_type/activity_pub/object_validators/map_of_string.ex
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-2023 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.MapOfString do
diff --git a/lib/pleroma/web/activity_pub/object_validators/common_fixes.ex b/lib/pleroma/web/activity_pub/object_validators/common_fixes.ex
index b141cc74c..ccc76beed 100644
--- a/lib/pleroma/web/activity_pub/object_validators/common_fixes.ex
+++ b/lib/pleroma/web/activity_pub/object_validators/common_fixes.ex
@@ -121,7 +121,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.CommonFixes do
defp get_language_from_content_map(_), do: nil
def maybe_add_content_map(%{"language" => language, "content" => content} = object)
- when not_empty_string(language) do
+ when not_empty_string(language) do
Map.put(object, "contentMap", Map.put(%{}, language, content))
end