mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-26 15:15:04 +01:00
Apply suggestion to lib/pleroma/web/activity_pub/activity_pub.ex
This commit is contained in:
parent
eb61564005
commit
24f760c2f7
@ -1431,7 +1431,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub 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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user