Send ok for emoji reloading as text, not as json
authorEkaterina Vaartis <vaartis@cock.li>
Mon, 12 Aug 2019 13:43:28 +0000 (16:43 +0300)
committerEkaterina Vaartis <vaartis@cock.li>
Wed, 18 Sep 2019 21:16:33 +0000 (00:16 +0300)
lib/pleroma/web/emoji_api/emoji_api_controller.ex

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