1
0
mirror of https://github.com/flarum/core.git synced 2025-07-29 12:40:40 +02:00

Don't include some relations by default

This commit is contained in:
Toby Zerner
2015-06-18 17:44:20 +09:30
parent 867210ab64
commit 6455d03eb6

View File

@@ -34,9 +34,9 @@ class MentionsServiceProvider extends ServiceProvider
(new Extend\ApiAction('Flarum\Api\Actions\Discussions\ShowAction'))
->addInclude('posts.mentionedBy')
->addInclude('posts.mentionedBy.user')
->addInclude('posts.mentionsPosts')
->addInclude('posts.mentionsPosts.user')
->addInclude('posts.mentionsUsers'),
->addInclude('posts.mentionsPosts', false)
->addInclude('posts.mentionsPosts.user', false)
->addInclude('posts.mentionsUsers', false),
(new Extend\ApiAction([
'Flarum\Api\Actions\Posts\IndexAction',