Fix response
authorEgor Kislitsyn <egor@kislitsyn.com>
Wed, 10 Jul 2019 10:40:34 +0000 (17:40 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 10 Jul 2019 11:10:09 +0000 (18:10 +0700)
lib/pleroma/plugs/uploaded_media.ex

index be2c17c5f74e0066cb4dc6d0bfe51d936cc6f017..6da9bdafce756a7c437a2e0ec575cc218a44abd1 100644 (file)
@@ -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