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

[bug] Disallow following/blocking yourself #664

Closed
autumnull opened this issue Jun 23, 2022 · 1 comment
Closed

[bug] Disallow following/blocking yourself #664

autumnull opened this issue Jun 23, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@autumnull
Copy link
Contributor

Describe the bug with a clear and concise description of what the bug is.

It's currently possible for an authenticated user to follow/block themself. I feel like this is weird behavior and shouldn't be possible.

What's your GoToSocial Version?

v0.3.6

GoToSocial Arch

armv7 Binary

What happened?

submitting an api request to /api/v1/accounts/{id}/follow (or .../block) with the currently authenticated user's id returns a relationship saying that you have followed/blocked yourself.

What you expected to happen?

should probably return a Error 406 (not acceptable) ?

How to reproduce it?

get an oauth token for an account, submit an api request as described above to the same account you auth'd with.

Anything else we need to know?

No response

@autumnull autumnull added the bug Something isn't working label Jun 23, 2022
@tsmethurst
Copy link
Contributor

Haha, yes, this is definitely a bug :') Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants