projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
589ce1e
)
Apply suggestion to lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
author
lain
<lain@soykaf.club>
Wed, 29 Apr 2020 19:49:03 +0000
(19:49 +0000)
committer
lain
<lain@soykaf.club>
Wed, 29 Apr 2020 19:49:03 +0000
(19:49 +0000)
lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
b/lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
index 8654f4295926a64b420571a9a8b3fe98df3ea45f..1752579211d8d5cf135e35641766bf62ac276054 100644
(file)
--- a/
lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
+++ b/
lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
@@
-31,7
+31,7
@@
defmodule Pleroma.Web.PleromaAPI.ChatController do
%{scopes: ["read:statuses"]} when action in [:messages, :index]
)
- plug(OpenApiSpex.Plug.CastAndValidate)
+ plug(OpenApiSpex.Plug.CastAndValidate
, render_error: Pleroma.Web.ApiSpec.RenderError
)
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.ChatOperation