Skip to content

Commit

Permalink
Support params.user in replay search
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Oct 27, 2023
1 parent a03ae82 commit 812b841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ export const actions: {[k: string]: QueryHandler} = {
async 'replays/search'(params) {
this.allowCORS();
const search = {
username: toID(params.username),
username: toID(params.username || params.user),
username2: toID(params.username2),
format: toID(params.format),
page: Number(params.page),
Expand All @@ -728,7 +728,7 @@ export const actions: {[k: string]: QueryHandler} = {
this.verifyCrossDomainRequest();
if (!this.user.loggedIn) throw new ActionError(`Access denied: You must be logged in as a username you're searching for.`);

Check failure on line 729 in src/actions.ts

View workflow job for this annotation

GitHub Actions / build (14.x)

This line has a length of 131. Maximum allowed is 120
const search = {
username: toID(params.username),
username: toID(params.username || params.user),
username2: toID(params.username2),
format: toID(params.format),
page: Number(params.page),
Expand Down

0 comments on commit 812b841

Please sign in to comment.