Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit c44dc49

Browse files
committed
Better display rank priority
1 parent 24f0bdc commit c44dc49

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Api/Controller/Linking.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ public function actionGet(ParameterBag $params)
5151
}
5252

5353
$user = $linked_account->User;
54-
$group = $group_finder->where('user_group_id', $user->display_style_group_id)->fetchOne();
54+
$group = $group_finder
55+
->whereSql("FIND_IN_SET(group_id, $user->secondary_group_ids) AND group_id NOT IN (71, 66, 14)")
56+
->order('display_style_priority', 'DESC')->fetchOne();
5557

5658
return $this->apiSuccess([
5759
'user' => $user,

0 commit comments

Comments
 (0)