From: Egor Kislitsyn Date: Wed, 10 Jul 2019 10:40:34 +0000 (+0700) Subject: Fix response X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a42da8f31159958da3cb46aaa9fa21bc0763c0ed;p=akkoma Fix response --- diff --git a/lib/pleroma/plugs/uploaded_media.ex b/lib/pleroma/plugs/uploaded_media.ex index be2c17c5f..6da9bdafc 100644 --- a/lib/pleroma/plugs/uploaded_media.ex +++ b/lib/pleroma/plugs/uploaded_media.ex @@ -66,7 +66,7 @@ defmodule Pleroma.Plugs.UploadedMedia do conn else conn - |> render_error(:not_found, "Not found") + |> send_resp(:not_found, dgettext("errors", "Not found")) |> halt() end end @@ -86,7 +86,7 @@ defmodule Pleroma.Plugs.UploadedMedia do Logger.error("#{__MODULE__}: Unknown get startegy: #{inspect(unknown)}") conn - |> render_error(:internal_server_error, "Internal Error") + |> send_resp(:internal_server_error, dgettext("errors", "Internal Error")) |> halt() end end