Apply suggestion to lib/pleroma/web/activity_pub/activity_pub.ex
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>
Fri, 17 Apr 2020 22:48:37 +0000 (22:48 +0000)
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>
Fri, 17 Apr 2020 22:48:37 +0000 (22:48 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex

index cb942c2117194007644cfeae89ce252e9afe3aea..eedea08a24206e0248c682a2b61e405b12732ccc 100644 (file)
@@ -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 ->