Apply suggestion to lib/pleroma/web/activity_pub/activity_pub.ex

This commit is contained in:
Haelwenn 2020-04-17 22:48:37 +00:00
parent eb61564005
commit 24f760c2f7
1 changed files with 1 additions and 1 deletions

View File

@ -1431,7 +1431,7 @@ defp object_to_user_data(data) do
data
|> Map.get("tag", [])
|> Enum.filter(fn
%{"type" => t} -> t == "Emoji"
%{"type" => "Emoji"} -> true
_ -> false
end)
|> Enum.reduce(%{}, fn %{"icon" => %{"url" => url}, "name" => name}, acc ->