From 0e14d6b9a84d79aa23d7824c453f15f185010ee2 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 14 Sep 2023 17:36:46 +0300 Subject: [PATCH] add magnetCommentIdParend and approved fields to the API --- src/crontab/export/feed.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/crontab/export/feed.php b/src/crontab/export/feed.php index cdec93c..ca8d65c 100644 --- a/src/crontab/export/feed.php +++ b/src/crontab/export/feed.php @@ -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 ]; } }