[#2409] Made GET /api/v1/accounts/:id/favourites auth-optional, adjusted tests.
This commit is contained in:
parent
00e62161f6
commit
b4139cc547
4 changed files with 24 additions and 10 deletions
|
|
@ -39,7 +39,10 @@ defmodule Pleroma.Web.PleromaAPI.AccountController do
|
|||
]
|
||||
)
|
||||
|
||||
plug(OAuthScopesPlug, %{scopes: ["read:favourites"]} when action == :favourites)
|
||||
plug(
|
||||
OAuthScopesPlug,
|
||||
%{scopes: ["read:favourites"], fallback: :proceed_unauthenticated} when action == :favourites
|
||||
)
|
||||
|
||||
plug(RateLimiter, [name: :account_confirmation_resend] when action == :confirmation_resend)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue