feat: Introduce a 'Load Comments' button to defer comment loading and refine notification data.

This commit is contained in:
x
2026-01-25 04:00:17 +01:00
parent f958bbff52
commit 322698cf74

View File

@@ -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)}`;