From eca0620304381741a85881f5d2e776f118792afe Mon Sep 17 00:00:00 2001 From: Haelwenn Date: Wed, 2 Dec 2020 16:54:32 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) --- lib/pleroma/web/pleroma_api/controllers/emoji_reaction_controller.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pleroma/web/pleroma_api/controllers/emoji_reaction_controller.ex b/lib/pleroma/web/pleroma_api/controllers/emoji_reaction_controller.ex index 0093bc4dc..a93a5eaa8 100644 --- a/lib/pleroma/web/pleroma_api/controllers/emoji_reaction_controller.ex +++ b/lib/pleroma/web/pleroma_api/controllers/emoji_reaction_controller.ex @@ -94,8 +94,6 @@ defmodule Pleroma.Web.PleromaAPI.EmojiReactionController do end def emoji_reactions(conn, _params) do - conn - |> put_resp_content_type("application/json") - |> send_resp(200, Jason.encode!(Emoji.emoji_reactions())) + json(conn, Emoji.emoji_reactions()) end end