From 9f06692e3e7646a287783fec6108bd1cdcad42fd Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 4 Apr 2024 02:39:46 +0200 Subject: [PATCH] Never notify on replies to self (#1013) --- api/resolvers/notifications.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/resolvers/notifications.js b/api/resolvers/notifications.js index 52c5f84b..3fb72cfe 100644 --- a/api/resolvers/notifications.js +++ b/api/resolvers/notifications.js @@ -84,6 +84,7 @@ export default { '"ThreadSubscription"."userId" = $1', 'r.created_at >= "ThreadSubscription".created_at', 'r.created_at < $2', + 'r."userId" <> $1', ...(meFull.noteAllDescendants ? [] : ['r.level = 1']) )} ORDER BY "sortTime" DESC