Skip to content
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

Merged

Conversation

notbakaneko
Copy link
Collaborator

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.

@@ -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()
Copy link
Collaborator

@nanaya nanaya Jan 6, 2025

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())
Copy link
Collaborator

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

@nanaya nanaya enabled auto-merge January 16, 2025 13:20
@nanaya nanaya merged commit f7d0f0b into ppy:master Jan 16, 2025
3 checks passed
@notbakaneko notbakaneko deleted the feature/change-beatmap-owner-exclude-bot branch January 24, 2025 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Members of the BOT usergroup shouldn't be able to be assigned guest difficulties
2 participants