projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2a589d
)
Fix response
author
Egor Kislitsyn
<egor@kislitsyn.com>
Wed, 10 Jul 2019 10:40:34 +0000
(17:40 +0700)
committer
Egor Kislitsyn
<egor@kislitsyn.com>
Wed, 10 Jul 2019 11:10:09 +0000
(18:10 +0700)
lib/pleroma/plugs/uploaded_media.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/plugs/uploaded_media.ex
b/lib/pleroma/plugs/uploaded_media.ex
index be2c17c5f74e0066cb4dc6d0bfe51d936cc6f017..6da9bdafce756a7c437a2e0ec575cc218a44abd1 100644
(file)
--- 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