projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'cachex-test' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
controllers
/
filter_controller.ex
diff --git
a/lib/pleroma/web/mastodon_api/controllers/filter_controller.ex
b/lib/pleroma/web/mastodon_api/controllers/filter_controller.ex
index 21dc374cd85407a62edfee8bdb267ae2f44d8741..c71a34b15c5adae4f6c9e6e88ed77ed2a6f6b7be 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/controllers/filter_controller.ex
+++ b/
lib/pleroma/web/mastodon_api/controllers/filter_controller.ex
@@
-6,7
+6,7
@@
defmodule Pleroma.Web.MastodonAPI.FilterController do
use Pleroma.Web, :controller
alias Pleroma.Filter
use Pleroma.Web, :controller
alias Pleroma.Filter
- alias Pleroma.Plugs.OAuthScopesPlug
+ alias Pleroma.
Web.
Plugs.OAuthScopesPlug
@oauth_read_actions [:show, :index]
@oauth_read_actions [:show, :index]
@@
-17,7
+17,7
@@
defmodule Pleroma.Web.MastodonAPI.FilterController do
OAuthScopesPlug,
%{scopes: ["write:filters"]} when action not in @oauth_read_actions
)
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"
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.FilterOperation
@doc "GET /api/v1/filters"