Fix incorrect multiple emoji tag handling introduced in initial impl

This commit is contained in:
Ekaterina Vaartis 2019-04-18 21:17:52 +03:00
commit 52ed287e87
4 changed files with 10 additions and 11 deletions

View file

@ -286,7 +286,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
emoji =
Emoji.get_all()
|> Enum.map(fn {short_code, path, tags} ->
{short_code, %{image_url: path, tags: String.split(tags, ",")}}
{short_code, %{image_url: path, tags: tags}}
end)
|> Enum.into(%{})