From 317395b36b969cff95330270ae9c3150c503e6ce Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 6 Jun 2024 21:25:42 +0200 Subject: [PATCH] [backend/core] Don't deliver poll ended notifications to remote users --- Iceshrimp.Backend/Core/Services/NotificationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iceshrimp.Backend/Core/Services/NotificationService.cs b/Iceshrimp.Backend/Core/Services/NotificationService.cs index 21ee0349..930808d1 100644 --- a/Iceshrimp.Backend/Core/Services/NotificationService.cs +++ b/Iceshrimp.Backend/Core/Services/NotificationService.cs @@ -219,7 +219,7 @@ public class NotificationService( .Where(p => p.Note == note) .Where(p => p.User.Host == null) .Select(p => p.User) - .Concat(db.Users.Where(p => p == note.User)) + .Concat(db.Users.Where(p => p == note.User && p.Host == null)) .Distinct() .Select(p => new Notification {