Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85830515
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Nov 1, 5:11 AM (16 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1802505
Default Alt Text
(1 KB)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline