[backend/core] Don't deliver poll ended notifications to remote users
This commit is contained in:
parent
066cb7dc19
commit
317395b36b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue