-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude bot and no profile special groups from being set as guest mappers #11764
Exclude bot and no profile special groups from being set as guest mappers #11764
Conversation
…ted supporter tags)
@@ -35,8 +35,7 @@ public function index() | |||
} | |||
|
|||
$users = User::where(fn ($q) => $q->whereIn('user_id', $numericIds)->orWhereIn('username', $stringIds)) | |||
->where('group_id', '<>', app('groups')->byIdentifier('no_profile')->getKey()) | |||
->default() | |||
->defaultForLookup() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this also affects user card which we probably want to keep showing for bots?
edit: it's actually even worse with the card saying the user doesn't exist...
@@ -35,13 +40,15 @@ public function index() | |||
} | |||
|
|||
$users = User::where(fn ($q) => $q->whereIn('user_id', $numericIds)->orWhereIn('username', $stringIds)) | |||
->where('group_id', '<>', app('groups')->byIdentifier('no_profile')->getKey()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should stay regardless of exclude bots option? See #6736
closes #11752
Also changes Chat Announcements and supporter tag gift lookups from the UI to exclude those groups, but I didn't change the actual check where those are applied yet.