fix: more navigation and chat fixes

This commit is contained in:
Andy Burke 2025-11-09 13:16:49 -08:00
parent de77f0fbe9
commit 0bc303a762
2 changed files with 16 additions and 47 deletions

View file

@ -161,7 +161,7 @@ export async function POST(req: Request, meta: Record<string, any>): Promise<Res
await INVITE_CODES.create(root_invite_code);
}
const secret_code = submitted_invite_code ?? root_invite_code_secret;
const secret_code = root_invite_code_secret ?? submitted_invite_code; // if it's the first user, use the autogen code, ignore anything they submit
if (typeof secret_code !== 'string' || secret_code.length < 3) {
return Response.json({
error: {