mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
Fix type comparison
Compare UserId with UserId, instead of User with UserId
This commit is contained in:
@@ -119,7 +119,7 @@ final class RelationApi(
|
||||
sort = $empty
|
||||
).map(_.userId)
|
||||
|
||||
def follow(u1: User, u2: UserId): Funit = (u1 != u2).so:
|
||||
def follow(u1: User, u2: UserId): Funit = (u1.id != u2).so:
|
||||
prefApi.followable(u2).flatMapz {
|
||||
userApi.isEnabled(u2).flatMapz {
|
||||
fetchRelation(u1, u2).zip(fetchRelation(u2, u1)).flatMap {
|
||||
|
||||
Reference in New Issue
Block a user