This commit is contained in:
syuilo
2018-07-21 19:17:15 +09:00
parent 049085fb7a
commit 297a7f541e
9 changed files with 17 additions and 13 deletions

View File

@ -1,5 +1,6 @@
import DriveFile from '../../../models/drive-file';
import { ILocalUser } from '../../../models/user';
import config from '../../../config';
export const meta = {
desc: {
@ -38,7 +39,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
});
res({
capacity: user.driveCapacity,
capacity: 1024 * 1024 * config.localDriveCapacityMb,
usage: usage
});
});

View File

@ -72,7 +72,6 @@ export default async (ctx: Koa.Context) => {
followingCount: 0,
name: null,
notesCount: 0,
driveCapacity: 1024 * 1024 * 128, // 128MiB
username: username,
usernameLower: username.toLowerCase(),
host: null,