Don't include your own comments when determining if there are new thread

subscription replies for user hasNewNotes
This commit is contained in:
Satoshi Nakamoto 2023-10-13 20:23:57 -04:00
parent 8f034f0e0a
commit a6d3ca09e9

View File

@ -329,6 +329,7 @@ export default {
${whereClause( ${whereClause(
'"ThreadSubscription"."userId" = $1', '"ThreadSubscription"."userId" = $1',
'"Item".created_at > $2::timestamp(3) without time zone', '"Item".created_at > $2::timestamp(3) without time zone',
'"Item"."userId" <> $1',
await filterClause(me, models), await filterClause(me, models),
muteClause(me) muteClause(me)
)})`, me.id, lastChecked) )})`, me.id, lastChecked)