Link replies to their discussion to ensure we can link to them

This commit is contained in:
Toby Zerner 2015-06-19 15:49:44 +09:30
parent 80474ec544
commit 090e0f1e94

View File

@ -34,6 +34,7 @@ class MentionsServiceProvider extends ServiceProvider
(new Extend\ApiAction('Flarum\Api\Actions\Discussions\ShowAction'))
->addInclude('posts.mentionedBy')
->addInclude('posts.mentionedBy.user')
->addLink('posts.mentionedBy.discussion')
->addInclude('posts.mentionsPosts', false)
->addInclude('posts.mentionsPosts.user', false)
->addInclude('posts.mentionsUsers', false),
@ -43,7 +44,8 @@ class MentionsServiceProvider extends ServiceProvider
'Flarum\Api\Actions\Posts\ShowAction',
]))
->addInclude('mentionedBy')
->addInclude('mentionedBy.user'),
->addInclude('mentionedBy.user')
->addLink('mentionedBy.discussion'),
(new Extend\ApiAction('Flarum\Api\Actions\Posts\CreateAction'))
->addInclude('mentionsPosts')