diff --git a/ProjectLighthouse/Database/DatabaseContext.Utils.cs b/ProjectLighthouse/Database/DatabaseContext.Utils.cs index f9e2e046..939f978d 100644 --- a/ProjectLighthouse/Database/DatabaseContext.Utils.cs +++ b/ProjectLighthouse/Database/DatabaseContext.Utils.cs @@ -122,6 +122,8 @@ public partial class DatabaseContext public async Task HeartUser(int userId, UserEntity heartedUser) { + if (userId == heartedUser.UserId) return; + HeartedProfileEntity? heartedProfile = await this.HeartedProfiles.FirstOrDefaultAsync(q => q.UserId == userId && q.HeartedUserId == heartedUser.UserId); if (heartedProfile != null) return;