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

This commit is contained in:
syuilo 2022-12-31 08:46:27 +09:00
parent b2d6561bc6
commit 7157fd663c

View file

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