diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-07-21 19:17:15 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-07-21 19:17:15 +0900 |
| commit | 297a7f541e497211cf3d34965417c6c137540b63 (patch) | |
| tree | 11a84608c7a3dc587f96dde5c641206180bdc940 /src/server/api | |
| parent | Merge pull request #1945 from syuilo/greenkeeper/@types/mongodb-3.1.2 (diff) | |
| download | sharkey-297a7f541e497211cf3d34965417c6c137540b63.tar.gz sharkey-297a7f541e497211cf3d34965417c6c137540b63.tar.bz2 sharkey-297a7f541e497211cf3d34965417c6c137540b63.zip | |
#1947
Diffstat (limited to 'src/server/api')
| -rw-r--r-- | src/server/api/endpoints/drive.ts | 3 | ||||
| -rw-r--r-- | src/server/api/private/signup.ts | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/drive.ts b/src/server/api/endpoints/drive.ts index a98a3a5b87..8ad961494f 100644 --- a/src/server/api/endpoints/drive.ts +++ b/src/server/api/endpoints/drive.ts @@ -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 }); }); diff --git a/src/server/api/private/signup.ts b/src/server/api/private/signup.ts index 2346222b6f..b969b75fc0 100644 --- a/src/server/api/private/signup.ts +++ b/src/server/api/private/signup.ts @@ -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, |