projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pleroma API: `emoji_reactions_by` does not need authorization
[akkoma]
/
lib
/
pleroma
/
web
/
uploader_controller.ex
diff --git
a/lib/pleroma/web/uploader_controller.ex
b/lib/pleroma/web/uploader_controller.ex
index d11e8e63e06225677d90ae873573029e34f8cc45..0cc172698f61ab9bf48108ef31d3299c59e84947 100644
(file)
--- a/
lib/pleroma/web/uploader_controller.ex
+++ b/
lib/pleroma/web/uploader_controller.ex
@@
-11,10
+11,6
@@
defmodule Pleroma.Web.UploaderController do
process_callback(conn, :global.whereis_name({Uploader, upload_path}), params)
end
process_callback(conn, :global.whereis_name({Uploader, upload_path}), params)
end
- def callbacks(conn, _) do
- send_resp(conn, 400, "bad request")
- end
-
defp process_callback(conn, pid, params) when is_pid(pid) do
send(pid, {Uploader, self(), conn, params})
defp process_callback(conn, pid, params) when is_pid(pid) do
send(pid, {Uploader, self(), conn, params})
@@
-24,6
+20,6
@@
defmodule Pleroma.Web.UploaderController do
end
defp process_callback(conn, _, _) do
end
defp process_callback(conn, _, _) do
-
send_resp(conn, 400
, "bad request")
+
render_error(conn, :bad_request
, "bad request")
end
end
end
end