fix(backend/ClientServerService): 凍結されたユーザーをユーザーIDで照会できない問題を修正 (MisskeyIO#872)
This commit is contained in:
parent
3307f86586
commit
e1ae455e4a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue