add magnetCommentIdParend and approved fields to the API

This commit is contained in:
ghost 2023-09-14 17:36:46 +03:00
parent e7470fa4a2
commit 0e14d6b9a8

View File

@ -364,11 +364,13 @@ try
{
$comments[] = (object)
[
'magnetCommentId' => $comment->magnetCommentId,
'userId' => $comment->userId,
'magnetId' => $comment->magnetId,
'timeAdded' => $comment->timeAdded,
'value' => $comment->value
'magnetCommentId' => $comment->magnetCommentId,
'magnetCommentIdParent' => $comment->magnetCommentIdParent,
'userId' => $comment->userId,
'magnetId' => $comment->magnetId,
'timeAdded' => $comment->timeAdded,
'approved' => $comment->approved,
'value' => $comment->value
];
}
}