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

fix(API_GetUserSummary): handle username case sensitivity and use canonical username #2854

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
4 changes: 2 additions & 2 deletions public/API/API_GetUserSummary.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
], 404);
}

$retVal['UserPic'] = "/UserPic/" . $user . ".png";
$retVal['UserPic'] = "/UserPic/" . $retVal['User'] . ".png";
$retVal['TotalRanked'] = countRankedUsers();

// assume caller doesn't care about the rich presence script for the last game played
Expand All @@ -131,7 +131,7 @@
'timestamp' => null,
'lastupdate' => null,
'activitytype' => null,
'User' => $user,
'User' => $retVal['User'],
'data' => null,
'data2' => null,
];
Expand Down