Changeset 834bcc3 in Klonkt for src/routes/comments.js
- Timestamp:
- 06/23/2026 06:14:27 PM (3 months ago)
- Branches:
- main
- Children:
- d774679
- Parents:
- bb42dfb
- File:
-
- 1 edited
-
src/routes/comments.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/comments.js
rbb42dfb r834bcc3 58 58 if (!parent) return res.status(400).send('Invalid parent comment'); 59 59 resolvedParent = parent.parent_comment_id || parent.id; 60 parentAuthorId = parent.author_id; // ontvanger van de "antwoord"-melding60 parentAuthorId = parent.author_id; // recipient of the "reply" notification 61 61 } 62 62 … … 77 77 `).run(commentId, post.id, req.session.user.id, resolvedParent, rawContent, status); 78 78 79 // Melding (alleen bij een zichtbare reactie): antwoord → de auteur van de reactie 80 // waarop gereageerd is; top-level reactie → de auteur van de post. notify() slaat 81 // jezelf-notificeren over. 79 // Notification (only for visible comments): reply → author of the parent comment; 80 // top-level comment → author of the post. notify() skips self-notifications. 82 81 if (status === 'approved') { 83 82 const url = `${res.locals.siteUrlBase || ''}/${post.slug}#comment-${commentId}`;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)