An error occurred while fetching the assigned milestone of the selected merge_request.
Fix public option not working
1 unresolved thread
1 unresolved thread
by responding with 403 to GET /api/v1/timelines/public when public is set to false
Fixes #873 (closed)
Edited by Aaron Tinio
Merge request reports
Activity
1. Fromdocs/config.md
public
: Makes the client API in authentificated mode-only except for user-profiles. Useful for disabling the Local Timeline and The Whole Known Network.so TWKN (federated timeline) should also disabled
Nevermind, forgot they are one endpoint in mastoapi- I really don't think you should do this in the controller, instead implement a plug called
Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug
which would let the conn continue if the instance is public or the user is authenticated and throw a 403 otherwise. Then pipe requests to timelines through this plug
Edited by rinpatch- I really don't think you should do this in the controller, instead implement a plug called
added 34 commits
-
782d7398...cdcdbd88 - 32 commits from branch
pleroma:develop
- a18b2c0b - Fix Pleroma.Config.get!/1 raising an error when value is false
- b8210d86 - Fix public option not working
-
782d7398...cdcdbd88 - 32 commits from branch
- Automatically resolved by Aaron Tinio
added 32 commits
-
d847f754...c133c32e - 30 commits from branch
pleroma:develop
- 7b8dc99e - Implement Pleroma.Plugs.EnsurePublicOrAuthenticated
- 70c81b95 - Pipe requests to public endpoints through EnsurePublicOrAuthenticatedPlug
-
d847f754...c133c32e - 30 commits from branch
mentioned in commit 62516be9
mentioned in issue #1045 (closed)
Please register or sign in to reply