From 363eb73fb38a0b0422344c4dbac3f7fc04a33c69 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 2 May 2023 16:21:18 +0000 Subject: [PATCH] fix --- packages/backend/src/core/SignupService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/SignupService.ts b/packages/backend/src/core/SignupService.ts index 364bcf0f8..29eb65fda 100644 --- a/packages/backend/src/core/SignupService.ts +++ b/packages/backend/src/core/SignupService.ts @@ -82,7 +82,7 @@ export class SignupService { const isTheFirstUser = (await this.usersRepository.countBy({ host: IsNull() })) === 0; - if (!opts.ignorePreservedUsernames || !isTheFirstUser) { + if (!opts.ignorePreservedUsernames && !isTheFirstUser) { const instance = await this.metaService.fetch(true); const isPreserved = instance.preservedUsernames.map(x => x.toLowerCase()).includes(username.toLowerCase()); if (isPreserved) {