[backend/core] Don't generate reply notifications for remote users
This commit is contained in:
parent
a0f3edf4fd
commit
14f078d145
1 changed files with 6 additions and 0 deletions
|
@ -58,9 +58,15 @@ public class NotificationService(
|
|||
.Select(p => p.BlockerId)
|
||||
.ToListAsync();
|
||||
|
||||
var remote = await db.Users
|
||||
.Where(p => users.Contains(p.Id) && p.IsRemoteUser)
|
||||
.Select(p => p.Id)
|
||||
.ToListAsync();
|
||||
|
||||
var notifications = users
|
||||
.Where(p => p != note.UserId)
|
||||
.Except(blocks)
|
||||
.Except(remote)
|
||||
.Select(p => new Notification
|
||||
{
|
||||
Id = IdHelpers.GenerateSlowflakeId(),
|
||||
|
|
Loading…
Add table
Reference in a new issue