Fix type comparison

Compare UserId with UserId,
instead of User with UserId
This commit is contained in:
tors42
2026-05-17 15:14:49 +02:00
parent 9e3bb21a69
commit f1ffdf0432
+1 -1
View File
@@ -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 {