mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 18:17:55 +00:00
Apply suggestion to lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
This commit is contained in:
parent
589ce1e96b
commit
145d35ff70
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue