Follower Count bug

This commit is contained in:
Vitor Pamplona 2023-02-14 19:22:37 -05:00
parent 694cfdf322
commit 5947d03cb3

View File

@ -95,7 +95,7 @@ class User(val pubkeyHex: String) {
fun follow(users: Set<User>, followedAt: Long) {
follows = follows + users
users.forEach {
if (this !in followers) {
if (this !in it.followers) {
it.followers = it.followers + this
it.liveFollows.invalidateData()
}
@ -107,7 +107,7 @@ class User(val pubkeyHex: String) {
fun unfollow(users: Set<User>) {
follows = follows - users
users.forEach {
if (this in followers) {
if (this in it.followers) {
it.followers = it.followers - this
it.liveFollows.invalidateData()
}