Skip to content

Commit

Permalink
fix: error in follow method
Browse files Browse the repository at this point in the history
  • Loading branch information
0bvim committed Oct 16, 2024
1 parent d27d1c9 commit d6f06e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/model/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (u *MyUser) Follow() {
var usersToFollow []string
for _, user := range u.Followers {
if !userInList(user, u.Following) || u.UserStatus[user.Login] == "Deny" {
usersToFollow = append(usersToFollow, u.Login)
usersToFollow = append(usersToFollow, user.Login)
}
}

Expand Down

0 comments on commit d6f06e1

Please sign in to comment.