mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-25 17:40:31 +00:00
Apply suggestion to lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
This commit is contained in:
parent
589ce1e96b
commit
145d35ff70
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ defmodule Pleroma.Web.PleromaAPI.ChatController do
|
||||||
%{scopes: ["read:statuses"]} when action in [:messages, :index]
|
%{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
|
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.ChatOperation
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue