Page MenuHomePhorge

No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
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 8b6f1741e..a5de64154 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,25 +1,25 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.MapOfString do
use Ecto.Type
alias Pleroma.MultiLanguage
def type, do: :map
def cast(object) do
with {status, %{} = data} when status in [:modified, :ok] <-
MultiLanguage.validate_map(object) do
{:ok, data}
else
- {:modified, nil} -> {:ok, nil}
+ {_, nil} -> {:ok, nil}
{:error, _} -> :error
end
end
def dump(data), do: {:ok, data}
def load(data), do: {:ok, data}
end

File Metadata

Mime Type
text/x-diff
Expires
Sun, Nov 1, 5:07 AM (16 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1802505
Default Alt Text
(1 KB)

Event Timeline