Change response format of /api/pleroma/emoji to the one that actually makes sense
This commit is contained in:
parent
144648de92
commit
b57b43027c
3 changed files with 34 additions and 14 deletions
|
|
@ -286,8 +286,9 @@ 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: String.split(tags, ",")}}
|
||||
end)
|
||||
|> Enum.into(%{})
|
||||
|
||||
json(conn, emoji)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue