From: Egor Kislitsyn Date: Tue, 28 Apr 2020 12:25:13 +0000 (+0400) Subject: Render mastodon-like errors in FilterController X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=32ca9f2c59369c15905f665bee3c759ae963ff91;p=akkoma Render mastodon-like errors in FilterController --- diff --git a/lib/pleroma/web/mastodon_api/controllers/filter_controller.ex b/lib/pleroma/web/mastodon_api/controllers/filter_controller.ex index 21dc374cd..abbf0ce02 100644 --- a/lib/pleroma/web/mastodon_api/controllers/filter_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/filter_controller.ex @@ -17,7 +17,7 @@ defmodule Pleroma.Web.MastodonAPI.FilterController do OAuthScopesPlug, %{scopes: ["write:filters"]} when action not in @oauth_read_actions ) - + defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.FilterOperation @doc "GET /api/v1/filters"