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

Combine lookup username array generation logic #10571

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

nanaya
Copy link
Collaborator

@nanaya nanaya commented Sep 20, 2023

Should've done this in the other pr but forgot to actually do it 👀

Also found another place it can be used.

return [];
}

if ($trimPrefix && $searchUsername[0] === '@') {
Copy link
Member

@cl8n cl8n Sep 23, 2023

Choose a reason for hiding this comment

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

looking at usages of findByUsernameForInactive(), I think $trimPrefix can just always be true.

@notbakaneko notbakaneko merged commit a1335e1 into ppy:master Sep 25, 2023
3 checks passed
@nanaya nanaya deleted the username-search-function branch December 19, 2023 08:21
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