From: lain Date: Wed, 29 Apr 2020 19:49:03 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/web/pleroma_api/controllers/chat_controller.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=145d35ff70a59efcff881315d5f1f7a0248a34be;p=akkoma Apply suggestion to lib/pleroma/web/pleroma_api/controllers/chat_controller.ex --- diff --git a/lib/pleroma/web/pleroma_api/controllers/chat_controller.ex b/lib/pleroma/web/pleroma_api/controllers/chat_controller.ex index 8654f4295..175257921 100644 --- 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