Add mastodon API endpoint for custom emoji.

This commit is contained in:
eal 2017-11-07 21:28:31 +02:00
commit c6210183e1
4 changed files with 15 additions and 2 deletions

View file

@ -71,6 +71,6 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
end
def emoji(conn, _params) do
json conn, Formatter.get_custom_emoji()
json conn, Enum.into(Formatter.get_custom_emoji(), %{})
end
end