mirror of
https://github.com/flarum/framework.git
synced 2025-03-06 02:01:34 +08:00
Link replies to their discussion to ensure we can link to them
This commit is contained in:
parent
80474ec544
commit
090e0f1e94
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user