diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-04-24 22:25:27 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-04-24 22:25:27 +0300 |
commit | b4139cc5472079a34f0256ac9991a0222844d44c (patch) | |
tree | a271f2dc411824494733e77537882b3ff5cf51be /lib/pleroma/web/pleroma_api | |
parent | 00e62161f64802317d7d789e7eac42c33f0540f5 (diff) | |
download | pleroma-b4139cc5472079a34f0256ac9991a0222844d44c.tar.gz |
[#2409] Made `GET /api/v1/accounts/:id/favourites` auth-optional, adjusted tests.
Diffstat (limited to 'lib/pleroma/web/pleroma_api')
-rw-r--r-- | lib/pleroma/web/pleroma_api/controllers/account_controller.ex | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pleroma/web/pleroma_api/controllers/account_controller.ex b/lib/pleroma/web/pleroma_api/controllers/account_controller.ex index 237c8157e..be7477867 100644 --- a/lib/pleroma/web/pleroma_api/controllers/account_controller.ex +++ b/lib/pleroma/web/pleroma_api/controllers/account_controller.ex @@ -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) |