diff --git a/core/server/api/endpoints/comments-comments.js b/core/server/api/endpoints/comments-comments.js index cb73c31e8d..f3566e2cf9 100644 --- a/core/server/api/endpoints/comments-comments.js +++ b/core/server/api/endpoints/comments-comments.js @@ -120,6 +120,8 @@ module.exports = { if (frame.options?.context?.member?.id) { data.member_id = frame.options.context.member.id; + + // todo: add validation that the parent comment is on the same post, and not deleted return models.Comment.add(data, frame.options); } else { return Promise.reject(new errors.NotFoundError({