fix lint warnings in ApNoteService.ts
This commit is contained in:
parent
f908b85e95
commit
ce77da52d0
1 changed files with 1 additions and 2 deletions
|
|
@ -203,7 +203,7 @@ export class ApNoteService implements OnModuleInit {
|
||||||
const uri = getOneApId(note.attributedTo);
|
const uri = getOneApId(note.attributedTo);
|
||||||
|
|
||||||
// ローカルで投稿者を検索し、もし凍結されていたらスキップ
|
// ローカルで投稿者を検索し、もし凍結されていたらスキップ
|
||||||
// eslint-disable-next-line no-param-reassign
|
|
||||||
actor ??= await this.apPersonService.fetchPerson(uri) as MiRemoteUser | undefined;
|
actor ??= await this.apPersonService.fetchPerson(uri) as MiRemoteUser | undefined;
|
||||||
if (actor && actor.isSuspended) {
|
if (actor && actor.isSuspended) {
|
||||||
throw new IdentifiableError('85ab9bd7-3a41-4530-959d-f07073900109', `failed to create note ${entryUri}: actor ${uri} has been suspended`);
|
throw new IdentifiableError('85ab9bd7-3a41-4530-959d-f07073900109', `failed to create note ${entryUri}: actor ${uri} has been suspended`);
|
||||||
|
|
@ -235,7 +235,6 @@ export class ApNoteService implements OnModuleInit {
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
// eslint-disable-next-line no-param-reassign
|
|
||||||
actor ??= await this.apPersonService.resolvePerson(uri, resolver) as MiRemoteUser;
|
actor ??= await this.apPersonService.resolvePerson(uri, resolver) as MiRemoteUser;
|
||||||
|
|
||||||
// 解決した投稿者が凍結されていたらスキップ
|
// 解決した投稿者が凍結されていたらスキップ
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue