From f1ffdf04320e669473188876821e1104f716ad8f Mon Sep 17 00:00:00 2001 From: tors42 <4084220+tors42@users.noreply.github.com> Date: Sun, 17 May 2026 15:14:49 +0200 Subject: [PATCH] Fix type comparison Compare UserId with UserId, instead of User with UserId --- modules/relation/src/main/RelationApi.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/relation/src/main/RelationApi.scala b/modules/relation/src/main/RelationApi.scala index 06fb38edf68..64ac2e30fb1 100644 --- a/modules/relation/src/main/RelationApi.scala +++ b/modules/relation/src/main/RelationApi.scala @@ -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 {