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

Self-Follow / Self-Reference in Repo is possible #1849

Open
proggeramlug opened this issue Nov 13, 2023 · 5 comments
Open

Self-Follow / Self-Reference in Repo is possible #1849

proggeramlug opened this issue Nov 13, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@proggeramlug
Copy link

Describe the bug

It is not noticeable when using most clients. But it is actually possible to follow oneself or to put it in other terms: To have a self-reference in a repository. There might be cases where this is actually desired but in terms of followers, it most likely is not.

To Reproduce

Steps to reproduce the behavior:

  1. Send a request to the "/xrpc/com.atproto.repo.createRecord" endpoint with the same record.subject as the repo key. It will succeed.
  2. Check the followers then. Either via API or via client (same anyways). It did notice that not all followers are immediately visible - a new account of mine was showing "2 followers" but only one came back via API. Probably unrelated to this issue.
  3. Example: https://bsky.app/profile/amlug.net/followers This, my main account, follows itself.

Expected behavior

Reject self-reference for most repo's, at the very least for followers.

Details

  • Operating system: Any
  • Node version: Any
@proggeramlug proggeramlug added the bug Something isn't working label Nov 13, 2023
@snarfed
Copy link
Contributor

snarfed commented Nov 14, 2023

Out of curiosity, does a self-follow cause any actual problems anywhere?

@proggeramlug
Copy link
Author

Not to my knowledge, it just inflates the follower number by 1.

@bnewbold
Copy link
Collaborator

Yup! You can also "like" your own content.

We'll eventually handle in the indexing code.

@mary-ext
Copy link
Contributor

Liking your own posts or other records seems fine I think

@proggeramlug
Copy link
Author

Agree, but is liking your own stuff a self-reference the same way a follow is?

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

4 participants