Skip to content

Commit

Permalink
Merge pull request #143 from anatawa12/do-not-log-remote-users
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Feb 17, 2024
2 parents f42a037 + 4c02427 commit 7329623
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
- センシティブチャンネルのNoteの畳まれ方がソフトミュートと同様になりました。
- このフォークへのリンクがmisskey標準のものに変更になりました。

### Server
- リモートユーザの削除が記録されないようになりました。

## 2024.2.0

### Note
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ export class DeleteAccountProcessorService {

@bindThis
async logDelete(user: MiUser) {
if (user.host != null) {
this.logger.info(`Skipping logging account deletion of ${user.id} ...`);
return;
}

const profile = await this.userProfilesRepository.findOneByOrFail({ userId: user.id });

// data from src/server/api/endpoints/users/show.ts
Expand Down Expand Up @@ -120,6 +125,8 @@ export class DeleteAccountProcessorService {
email: profile.email,
info,
});

this.logger.info(`Finished logging account deletion of ${user.id} ...`);
}

@bindThis
Expand Down

0 comments on commit 7329623

Please sign in to comment.