projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'fix/2291-atom-feed-escape' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
admin_api
/
controllers
/
fallback_controller.ex
diff --git
a/lib/pleroma/web/admin_api/controllers/fallback_controller.ex
b/lib/pleroma/web/admin_api/controllers/fallback_controller.ex
index 82965936da1518b36de460a05249182c10434784..34d90db076598bd35d2208876692f860817e02fd 100644
(file)
--- a/
lib/pleroma/web/admin_api/controllers/fallback_controller.ex
+++ b/
lib/pleroma/web/admin_api/controllers/fallback_controller.ex
@@
-17,6
+17,12
@@
defmodule Pleroma.Web.AdminAPI.FallbackController do
|> json(%{error: reason})
end
+ def call(conn, {:errors, errors}) do
+ conn
+ |> put_status(:bad_request)
+ |> json(%{errors: errors})
+ end
+
def call(conn, {:param_cast, _}) do
conn
|> put_status(:bad_request)