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

Anonymous API access to statuses #702

Open
pmakholm opened this issue Feb 28, 2024 · 1 comment · May be fixed by #704
Open

Anonymous API access to statuses #702

pmakholm opened this issue Feb 28, 2024 · 1 comment · May be fixed by #704

Comments

@pmakholm
Copy link

The following API endpoints seems to be public by default on Mastodon, but requires the read:statuses scope on Takahe:

    path("v1/accounts/<id>/statuses", accounts.account_statuses),
    path("v1/statuses/<id>/source", statuses.status_source),
    path(
        "v1/statuses/<id>",
        methods(
            get=statuses.status,
        ),
    ),
    path("v1/statuses/<id>/context", statuses.status_context),

It would be nice if it was possible to configure Takahe to allow public access to these.

I believe all information available with these API's is also available on the public time line (if enabled), so one solution would be to implicitly enable read:statuses for anonymous access in api/decorators.py if public time line is enabled.

@pmakholm
Copy link
Author

By the way, the favourited_by and reblogged_by API endpoints are not rescticted.

Without checking the precedence by Mastodon, these feels like they should be restricted at least at the same level as reading the status.

@pmakholm pmakholm linked a pull request Mar 14, 2024 that will close this issue
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 a pull request may close this issue.

1 participant