[backend/core] Send poll ended notification to poll creator even if they didn't vote in the poll

This commit is contained in:
Laura Hausmann 2024-06-06 21:13:49 +02:00
parent 8e20916c9a
commit 066cb7dc19
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -219,6 +219,7 @@ public class NotificationService(
.Where(p => p.Note == note) .Where(p => p.Note == note)
.Where(p => p.User.Host == null) .Where(p => p.User.Host == null)
.Select(p => p.User) .Select(p => p.User)
.Concat(db.Users.Where(p => p == note.User))
.Distinct() .Distinct()
.Select(p => new Notification .Select(p => new Notification
{ {