-
Notifications
You must be signed in to change notification settings - Fork 31
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
Follow and Unfollow nostr contacts #1070
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll defer to @futurepaul on this
2053cbf
to
24d232a
Compare
Did some code clean up and ended up doing the mutex just to be safe. |
a852654
to
5722de4
Compare
Added |
5722de4
to
95cd80d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the goose chase but I'm not actually using get_follows_sorted
now. Follow / unfollow / is_followed all work great!
Closes #1068
This has the base functionality needed for following and unfollowing. Tried to do my best to prevent us from deleting a follow list.
One thing with this is there is potential race conditions if you call follow/unfollow in rapid succession. Could add a mutex around adding follows but that feels a little overkill, maybe will have to bite the bullet though@futurepaul I imagine you'll want some extra utility around this. I was thinking of adding
is_followed
toTagItem
. Is there anything else I could add that you can think of?