Skip to content

Commit 634132e

Browse files
authored
chore: remove duplicated mentionsUsers relation
1 parent 6de38ff commit 634132e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

extensions/mentions/extend.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
->belongsToMany('mentionedBy', Post::class, 'post_mentions_post', 'mentions_post_id', 'post_id')
5252
->belongsToMany('mentionsPosts', Post::class, 'post_mentions_post', 'post_id', 'mentions_post_id')
5353
->belongsToMany('mentionsUsers', User::class, 'post_mentions_user', 'post_id', 'mentions_user_id')
54-
->belongsToMany('mentionsGroups', Group::class, 'post_mentions_group', 'post_id', 'mentions_group_id')
55-
->belongsToMany('mentionsUsers', User::class, 'post_mentions_user', 'post_id', 'mentions_user_id'),
54+
->belongsToMany('mentionsGroups', Group::class, 'post_mentions_group', 'post_id', 'mentions_group_id'),
5655

5756
new Extend\Locales(__DIR__.'/locale'),
5857

0 commit comments

Comments
 (0)