1
0
forked from mirror/misskey

cleanup(ApPersonService.ts)

This commit is contained in:
okayurisotto 2023-07-03 20:26:43 +09:00
parent 9801b20040
commit 8e46204d91

View File

@ -401,16 +401,11 @@ export class ApPersonService implements OnModuleInit {
if (typeof uri !== 'string') throw new Error('uri is not string');
// URIがこのサーバーを指しているならスキップ
if (uri.startsWith(`${this.config.url}/`)) {
return;
}
if (uri.startsWith(`${this.config.url}/`)) return;
//#region このサーバーに既に登録されているか
const exist = await this.usersRepository.findOneBy({ uri }) as RemoteUser | null;
if (exist === null) {
return;
}
if (exist === null) return;
//#endregion
// eslint-disable-next-line no-param-reassign