Skip to content

Commit

Permalink
削除済みのユーザーが deleteActor される時の動作を修正する (misskey-dev#9980)
Browse files Browse the repository at this point in the history
  • Loading branch information
yu256 committed Mar 5, 2023
1 parent 8217d5f commit e2419a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export async function deleteActor(actor: CacheableRemoteUser, uri: string): Prom

const user = await Users.findOneBy({ id: actor.id });
if (user == null) {
logger.info(`skip: actor not found`);
return `skip: actor not found`;
} else if (user.isDeleted) {
logger.info(`skip: already deleted`);
return `skip: already deleted`;
}

const job = await createDeleteAccountJob(actor);
Expand Down

0 comments on commit e2419a9

Please sign in to comment.