Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow anonymous access to reading public statuses #704

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pmakholm
Copy link

Fixes #702

This allows anonymous access to API methods marked with @scope_required("read:statuses") if Public Timeline is enabled in the configuration.

@AstraLuma
Copy link
Contributor

To work through the design process:

This is the only place that uses has_scope(), but not the only place that uses the token.

The alternative I can think of is introducing a Faux Token for when the user doesn't have one. But I'm worried that'll break other things.

How easy is it to add a test for this situation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Anonymous API access to statuses
2 participants