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 => ({
|
||||
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)}`;
|
||||
|
||||
Reference in New Issue
Block a user