Merge branch 'mkjs-n' of https://github.com/misskey-dev/misskey into mkjs-n

This commit is contained in:
tamaina 2023-05-02 16:51:48 +00:00
commit abefddb90e
1 changed files with 1 additions and 1 deletions

View File

@ -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) {