Skip to content

Commit

Permalink
Add 'firstPost.reactions' to list discussions API endpoint as well
Browse files Browse the repository at this point in the history
  • Loading branch information
dsevillamartin committed Jul 8, 2022
1 parent 5107a5b commit 0018048
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
$data['reactions'] = Reaction::get();
}),

(new Extend\ApiController(ApiController\ListDiscussionsController::class))
->addOptionalInclude('firstPost.reactions'),

(new Extend\ApiController(ApiController\ShowDiscussionController::class))
->addInclude('posts.reactions')
->addOptionalInclude('firstPost.reactions'),
Expand Down

0 comments on commit 0018048

Please sign in to comment.