feat: Introduce a 'Load Comments' button to defer comment loading and refine notification data.
This commit is contained in:
@@ -109,9 +109,8 @@ export default (router, tpl) => {
|
|||||||
const notificationsToAdd = Array.from(recipients).map(uid => ({
|
const notificationsToAdd = Array.from(recipients).map(uid => ({
|
||||||
user_id: uid,
|
user_id: uid,
|
||||||
type: 'comment_reply',
|
type: 'comment_reply',
|
||||||
item_id: item_id, // Already parsed as int
|
item_id: item_id,
|
||||||
comment_id: commentId, // Already parsed as int
|
reference_id: commentId
|
||||||
reference_id: commentId // Already parsed as int
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
await db`INSERT INTO notifications ${db(notificationsToAdd)}`;
|
await db`INSERT INTO notifications ${db(notificationsToAdd)}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user