mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-29 11:11:44 +01:00
Follower Count bug
This commit is contained in:
parent
694cfdf322
commit
5947d03cb3
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user