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

Add per-beatmap team ranking #11989

Merged
merged 4 commits into from
Mar 12, 2025
Merged

Conversation

nanaya
Copy link
Collaborator

@nanaya nanaya commented Mar 11, 2025

🤷

@@ -36,7 +36,7 @@ public function __construct()
private static function assertSupporterOnlyOptions(?User $currentUser, string $type, array $mods): void
{
$isSupporter = $currentUser !== null && $currentUser->isSupporter();
if ($type !== 'global' && !$isSupporter) {
if (!in_array($type, ScoreSearchParams::FREE_TYPES, true) && !$isSupporter) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wonder if it makes more sense to make it SUPPORTER_TYPES now if the condition is no longer simply !== 'global'

return 'supporter_only';
}

return this.xhrState;
}

get requiresSupporter() {
return !['global', 'team'].includes(this.currentType) || this.enabledMods.size > 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be a const Set<ScoreboardType> (also maybe make it match against supporter required instead of not free)

@notbakaneko notbakaneko enabled auto-merge March 12, 2025 05:50
@notbakaneko notbakaneko merged commit 310adac into ppy:master Mar 12, 2025
3 checks passed
@peppy
Copy link
Member

peppy commented Mar 13, 2025

I'm adding client-side support for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants