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:
parent
96504008c1
commit
484e5102e2
1 changed files with 2 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue