Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
[akkoma] / 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 ->