[backend/core] Don't deliver poll ended notifications to remote users

This commit is contained in:
Laura Hausmann 2024-06-06 21:25:42 +02:00
parent 066cb7dc19
commit 317395b36b
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -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
{