fix(backend/ClientServerService): 凍結されたユーザーをユーザーIDで照会できない問題を修正 (MisskeyIO#872)

This commit is contained in:
あわわわとーにゅ 2025-01-08 03:38:12 +09:00 committed by GitHub
parent 3307f86586
commit e1ae455e4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -534,7 +534,7 @@ export class ClientServerService {
vary(reply.raw, 'Accept'); vary(reply.raw, 'Accept');
if (user != null) { if (user) {
const profile = await this.userProfilesRepository.findOneByOrFail({ userId: user.id }); const profile = await this.userProfilesRepository.findOneByOrFail({ userId: user.id });
const meta = await this.metaService.fetch(); const meta = await this.metaService.fetch();
const me = profile.fields const me = profile.fields
@ -567,7 +567,7 @@ export class ClientServerService {
isSuspended: false, isSuspended: false,
}); });
if (user == null) { if (!user || (user.isDeleted && user.isSuspended)) {
reply.code(404); reply.code(404);
return; return;
} }