Skip to content

Commit

Permalink
Add optional 'firstPost.reactions' include to show discussion API end…
Browse files Browse the repository at this point in the history
…point

Fixes #49
  • Loading branch information
dsevillamartin committed Jul 8, 2022
1 parent bad13ef commit 5107a5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
}),

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

(new Extend\ApiController(ApiController\ShowForumController::class))
->addInclude('reactions'),
Expand Down

0 comments on commit 5107a5b

Please sign in to comment.