From: lain Date: Thu, 26 Mar 2020 14:23:19 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/web/activity_pub/object_validator.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=d7aa0b645b0da48af830f252ae80458afc965281;p=akkoma Apply suggestion to lib/pleroma/web/activity_pub/object_validator.ex --- diff --git a/lib/pleroma/web/activity_pub/object_validator.ex b/lib/pleroma/web/activity_pub/object_validator.ex index cff924047..9b2889e92 100644 --- a/lib/pleroma/web/activity_pub/object_validator.ex +++ b/lib/pleroma/web/activity_pub/object_validator.ex @@ -26,8 +26,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidator do def stringify_keys(object) do object - |> Enum.map(fn {key, val} -> {to_string(key), val} end) - |> Enum.into(%{}) + |> Map.new(fn {key, val} -> {to_string(key), val} end) end def fetch_actor_and_object(object) do