do not show deleted replies in notifications

This commit is contained in:
k00b 2025-08-25 08:45:51 -05:00
parent 37a7f79625
commit 19146844ca
2 changed files with 2 additions and 0 deletions

View File

@ -167,6 +167,7 @@ export default {
) as "Item" ) as "Item"
${whereClause( ${whereClause(
'"Item".created_at < $2', '"Item".created_at < $2',
'"Item"."deletedAt" IS NULL',
await filterClause(me, models), await filterClause(me, models),
muteClause(me), muteClause(me),
activeOrMine(me))} activeOrMine(me))}

View File

@ -287,6 +287,7 @@ export default {
'r.created_at > $2', 'r.created_at > $2',
'r.created_at >= "ThreadSubscription".created_at', 'r.created_at >= "ThreadSubscription".created_at',
'r."userId" <> $1', 'r."userId" <> $1',
'"Item"."deletedAt" IS NULL',
activeOrMine(me), activeOrMine(me),
await filterClause(me, models), await filterClause(me, models),
muteClause(me), muteClause(me),