fix: regression of username case sensitivity (#9642)

This commit is contained in:
Omar López
2023-06-19 17:34:31 +00:00
committed by GitHub
parent df6d7e8df7
commit 4add4df08e
+2 -1
View File
@@ -101,7 +101,8 @@ async function getUserPageProps(context: GetServerSidePropsContext) {
const ssr = await ssrInit(context);
const user = await prisma.user.findFirst({
where: {
username,
/** TODO: We should standarize this */
username: username.toLowerCase().replace(/( |%20)/g, "+"),
organization: isValidOrgDomain
? {
slug: currentOrgDomain,