Browse Source

add magnetCommentIdParend and approved fields to the API

main
ghost 1 year ago
parent
commit
0e14d6b9a8
  1. 12
      src/crontab/export/feed.php

12
src/crontab/export/feed.php

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

Loading…
Cancel
Save