From 634132e06ec5a32e1234fa2404f8ce2bb755007b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Wed, 6 Nov 2024 15:59:27 +0100 Subject: [PATCH] chore: remove duplicated mentionsUsers relation --- extensions/mentions/extend.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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'),