From 322698cf7439546b004a13fa9c5dcc4bd68af635 Mon Sep 17 00:00:00 2001 From: x Date: Sun, 25 Jan 2026 04:00:17 +0100 Subject: [PATCH] feat: Introduce a 'Load Comments' button to defer comment loading and refine notification data. --- src/inc/routes/comments.mjs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/inc/routes/comments.mjs b/src/inc/routes/comments.mjs index ff5b024..ba3971e 100644 --- a/src/inc/routes/comments.mjs +++ b/src/inc/routes/comments.mjs @@ -109,9 +109,8 @@ export default (router, tpl) => { const notificationsToAdd = Array.from(recipients).map(uid => ({ user_id: uid, type: 'comment_reply', - item_id: item_id, // Already parsed as int - comment_id: commentId, // Already parsed as int - reference_id: commentId // Already parsed as int + item_id: item_id, + reference_id: commentId })); await db`INSERT INTO notifications ${db(notificationsToAdd)}`;