fix(server): driveCapacityOverrideMbが公開情報になっているのを修正

This commit is contained in:
syuilo 2022-12-31 08:46:27 +09:00
parent b2d6561bc6
commit 7157fd663c
1 changed files with 3 additions and 1 deletions

View File

@ -409,7 +409,6 @@ export class UserEntityService implements OnModuleInit {
themeColor: instance.themeColor, themeColor: instance.themeColor,
} : undefined) : undefined, } : undefined) : undefined,
onlineStatus: this.getOnlineStatus(user), onlineStatus: this.getOnlineStatus(user),
driveCapacityOverrideMb: user.driveCapacityOverrideMb,
...(opts.detail ? { ...(opts.detail ? {
url: profile!.url, url: profile!.url,
@ -446,6 +445,9 @@ export class UserEntityService implements OnModuleInit {
userId: user.id, userId: user.id,
}).then(result => result >= 1) }).then(result => result >= 1)
: false, : false,
...(isMe || opts.includeSecrets ? {
driveCapacityOverrideMb: user.driveCapacityOverrideMb,
} : {}),
} : {}), } : {}),
...(opts.detail && isMe ? { ...(opts.detail && isMe ? {