Compare commits

...

2 Commits

Author SHA1 Message Date
ekzyis 7fd4f58e81
Fix subscription ignores OP replies (#1272) 2024-07-22 16:14:48 -05:00
ekzyis ea8ad5c4c9
Fix notification indicator shown for own replies (#1271) 2024-07-22 16:13:07 -05:00
2 changed files with 2 additions and 2 deletions

View File

@ -215,8 +215,7 @@ export async function onPaid ({ invoice, id }, context) {
INSERT INTO "Reply" (created_at, updated_at, "ancestorId", "ancestorUserId", "itemId", "userId", level)
SELECT comment.created_at, comment.updated_at, ancestors.id, ancestors."userId",
comment.id, comment."userId", nlevel(comment.path) - nlevel(ancestors.path)
FROM ancestors, comment
WHERE ancestors."userId" <> comment."userId"`
FROM ancestors, comment`
notifyItemParents({ item, models }).catch(console.error)
}

View File

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