mirror of
https://github.com/flarum/core.git
synced 2025-08-07 08:56:38 +02:00
Link replies to their discussion to ensure we can link to them
This commit is contained in:
@@ -34,6 +34,7 @@ class MentionsServiceProvider extends ServiceProvider
|
|||||||
(new Extend\ApiAction('Flarum\Api\Actions\Discussions\ShowAction'))
|
(new Extend\ApiAction('Flarum\Api\Actions\Discussions\ShowAction'))
|
||||||
->addInclude('posts.mentionedBy')
|
->addInclude('posts.mentionedBy')
|
||||||
->addInclude('posts.mentionedBy.user')
|
->addInclude('posts.mentionedBy.user')
|
||||||
|
->addLink('posts.mentionedBy.discussion')
|
||||||
->addInclude('posts.mentionsPosts', false)
|
->addInclude('posts.mentionsPosts', false)
|
||||||
->addInclude('posts.mentionsPosts.user', false)
|
->addInclude('posts.mentionsPosts.user', false)
|
||||||
->addInclude('posts.mentionsUsers', false),
|
->addInclude('posts.mentionsUsers', false),
|
||||||
@@ -43,7 +44,8 @@ class MentionsServiceProvider extends ServiceProvider
|
|||||||
'Flarum\Api\Actions\Posts\ShowAction',
|
'Flarum\Api\Actions\Posts\ShowAction',
|
||||||
]))
|
]))
|
||||||
->addInclude('mentionedBy')
|
->addInclude('mentionedBy')
|
||||||
->addInclude('mentionedBy.user'),
|
->addInclude('mentionedBy.user')
|
||||||
|
->addLink('mentionedBy.discussion'),
|
||||||
|
|
||||||
(new Extend\ApiAction('Flarum\Api\Actions\Posts\CreateAction'))
|
(new Extend\ApiAction('Flarum\Api\Actions\Posts\CreateAction'))
|
||||||
->addInclude('mentionsPosts')
|
->addInclude('mentionsPosts')
|
||||||
|
Reference in New Issue
Block a user