Update [type].tsx (#7387)
This commit is contained in:
1 parent
4edc973876
commit
b2b846647d
1 file changed
+2
-1
@@ -70,7 +70,8 @@ async function getUserPageProps(context: GetStaticPropsContext) {
|
||||
|
||||
const user = await prisma.user.findUnique({
|
||||
where: {
|
||||
username,
|
||||
/** TODO: We should standarize this */
|
||||
username: username.toLowerCase().replace(/( |%20)/g, "+"),
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
|
||||
Reference in new issue
Block a user