0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added comment for the add comment endpoint

refs https://github.com/TryGhost/Team/issues/1664
This commit is contained in:
Simon Backx 2022-07-07 14:21:24 +02:00 committed by Simon Backx
parent 96504008c1
commit 484e5102e2

View file

@ -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({