projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not require `description` in `update` action
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
controllers
/
notification_controller.ex
diff --git
a/lib/pleroma/web/mastodon_api/controllers/notification_controller.ex
b/lib/pleroma/web/mastodon_api/controllers/notification_controller.ex
index dcb421756631931b7c4c09547c317e919170f264..596b85617a061d3a56ee56d08e01256ab58ca9e5 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/controllers/notification_controller.ex
+++ b/
lib/pleroma/web/mastodon_api/controllers/notification_controller.ex
@@
-13,7
+13,7
@@
defmodule Pleroma.Web.MastodonAPI.NotificationController do
@oauth_read_actions [:show, :index]
@oauth_read_actions [:show, :index]
- plug(
OpenApiSpex.Plug.CastAndValidate, render_error: Pleroma.Web.ApiSpec.RenderError
)
+ plug(
Pleroma.Web.ApiSpec.CastAndValidate
)
plug(
OAuthScopesPlug,
plug(
OAuthScopesPlug,
@@
-22,8
+22,6
@@
defmodule Pleroma.Web.MastodonAPI.NotificationController do
plug(OAuthScopesPlug, %{scopes: ["write:notifications"]} when action not in @oauth_read_actions)
plug(OAuthScopesPlug, %{scopes: ["write:notifications"]} when action not in @oauth_read_actions)
- plug(Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug)
-
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.NotificationOperation
# GET /api/v1/notifications
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.NotificationOperation
# GET /api/v1/notifications