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

Include access token when fetching user followers/followings #183

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

Sorixelle
Copy link
Contributor

GoToSocial requires authentication on these endpoints, and not supplying the token was causing these requests to fail with a 401 error.

As far as I can tell, these calls only ever hit the configured server, and there shouldn't be any issues with providing a token when it isn't required, so I don't think there's any problems with this change. Tested it against my own GoToSocial instance and follower information is fetched with no problems.

Fixes #117.

@nanos
Copy link
Owner

nanos commented Oct 8, 2024

Thanks @Sorixelle

Can you please address the broken tests, and then I'll have a look at it.

GoToSocial requires authentication on these endpoints, and not supplying the token was causing these requests to fail
with a 401 error.

Fixes nanos#117.
@Sorixelle
Copy link
Contributor Author

Whoops, good catch. Tests should be good now.

@nanos nanos merged commit 6a158cf into nanos:main Oct 9, 2024
1 check passed
@Sorixelle Sorixelle deleted the gts-following-401 branch October 9, 2024 06:46
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.

FediFetcher fails on checking followings with 401
2 participants