mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-22 17:27:18 +00:00
Apply suggestion to priv/repo/migrations/20200406100225_users_add_emoji.exs
This commit is contained in:
parent
24f760c2f7
commit
d698ecef9b
|
@ -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 ->
|
||||
|
|
Loading…
Reference in a new issue