Send ok for emoji reloading as text, not as json

This commit is contained in:
Ekaterina Vaartis 2019-08-12 16:43:28 +03:00
parent ee620ecbf1
commit 7a0c755d0a

View File

@ -6,7 +6,7 @@ defmodule Pleroma.Web.EmojiAPI.EmojiAPIController do
def reload(conn, _params) do def reload(conn, _params) do
Pleroma.Emoji.reload() Pleroma.Emoji.reload()
conn |> json("ok") conn |> text("ok")
end end
@emoji_dir_path Path.join( @emoji_dir_path Path.join(