From e557882a7da9c80b83fddef24a7267e182dfcdcd Mon Sep 17 00:00:00 2001 From: keyan Date: Tue, 12 Sep 2023 16:36:52 -0500 Subject: [PATCH] don't notify about thread creation on forward --- api/resolvers/notifications.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/resolvers/notifications.js b/api/resolvers/notifications.js index ab827dd2..f51ca455 100644 --- a/api/resolvers/notifications.js +++ b/api/resolvers/notifications.js @@ -97,6 +97,8 @@ export default { AND "Item"."userId" <> $1 AND "Item".created_at <= $2 -- Only show items that have been created since subscribing to the thread AND "Item".created_at >= "ThreadSubscription".created_at + -- don't notify on posts + AND "Item"."parentId" IS NOT NULL ${await filterClause(me, models)} ORDER BY "sortTime" DESC LIMIT ${LIMIT}+$3`