Apply suggestion to priv/repo/migrations/20200406100225_users_add_emoji.exs
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>
Fri, 17 Apr 2020 22:48:40 +0000 (22:48 +0000)
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>
Fri, 17 Apr 2020 22:48:40 +0000 (22:48 +0000)
priv/repo/migrations/20200406100225_users_add_emoji.exs

index f754502ae44dbd3f2ea109fbbe1ba62c0b8ac763..f248108defbd11d8cc1080cd7e3298eba38af5b1 100644 (file)
@@ -18,7 +18,7 @@ defmodule Pleroma.Repo.Migrations.UsersPopulateEmoji do
         user.source_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 ->