diff --git a/extensions/mentions/extend.php b/extensions/mentions/extend.php index 6f59fd0b2..3c2d9b3d1 100644 --- a/extensions/mentions/extend.php +++ b/extensions/mentions/extend.php @@ -51,8 +51,7 @@ return [ ->belongsToMany('mentionedBy', Post::class, 'post_mentions_post', 'mentions_post_id', 'post_id') ->belongsToMany('mentionsPosts', Post::class, 'post_mentions_post', 'post_id', 'mentions_post_id') ->belongsToMany('mentionsUsers', User::class, 'post_mentions_user', 'post_id', 'mentions_user_id') - ->belongsToMany('mentionsGroups', Group::class, 'post_mentions_group', 'post_id', 'mentions_group_id') - ->belongsToMany('mentionsUsers', User::class, 'post_mentions_user', 'post_id', 'mentions_user_id'), + ->belongsToMany('mentionsGroups', Group::class, 'post_mentions_group', 'post_id', 'mentions_group_id'), new Extend\Locales(__DIR__.'/locale'),