From: Haelwenn Date: Fri, 17 Apr 2020 22:48:40 +0000 (+0000) Subject: Apply suggestion to priv/repo/migrations/20200406100225_users_add_emoji.exs X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=d698ecef9b5ede19474f1a45b776f8ad9f8b7678;p=akkoma Apply suggestion to priv/repo/migrations/20200406100225_users_add_emoji.exs --- diff --git a/priv/repo/migrations/20200406100225_users_add_emoji.exs b/priv/repo/migrations/20200406100225_users_add_emoji.exs index f754502ae..f248108de 100644 --- a/priv/repo/migrations/20200406100225_users_add_emoji.exs +++ b/priv/repo/migrations/20200406100225_users_add_emoji.exs @@ -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 ->