mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 16:40:29 +00:00
Apply suggestion to lib/pleroma/web/activity_pub/activity_pub.ex
This commit is contained in:
parent
eb61564005
commit
24f760c2f7
1 changed files with 1 additions and 1 deletions
|
@ -1431,7 +1431,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
||||||
data
|
data
|
||||||
|> Map.get("tag", [])
|
|> Map.get("tag", [])
|
||||||
|> Enum.filter(fn
|
|> Enum.filter(fn
|
||||||
%{"type" => t} -> t == "Emoji"
|
%{"type" => "Emoji"} -> true
|
||||||
_ -> false
|
_ -> false
|
||||||
end)
|
end)
|
||||||
|> Enum.reduce(%{}, fn %{"icon" => %{"url" => url}, "name" => name}, acc ->
|
|> Enum.reduce(%{}, fn %{"icon" => %{"url" => url}, "name" => name}, acc ->
|
||||||
|
|
Loading…
Reference in a new issue