diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2018-10-24 04:00:04 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-10-24 04:00:04 +0900 |
| commit | daa22d68fa8a55a2e65a1de541f903edb64ff042 (patch) | |
| tree | 6307e3b1ff7a411b96a4213ed4685f9c32b6c3a6 /src/config/load.ts | |
| parent | 10.30.3 (diff) | |
| download | sharkey-daa22d68fa8a55a2e65a1de541f903edb64ff042.tar.gz sharkey-daa22d68fa8a55a2e65a1de541f903edb64ff042.tar.bz2 sharkey-daa22d68fa8a55a2e65a1de541f903edb64ff042.zip | |
Make max allowed text length configurable (#2992)
* Make max allowed text length configurable
* Fix canPost
Diffstat (limited to 'src/config/load.ts')
| -rw-r--r-- | src/config/load.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/load.ts b/src/config/load.ts index 3a1bac3201..9cdd742c6d 100644 --- a/src/config/load.ts +++ b/src/config/load.ts @@ -49,6 +49,8 @@ export default function load() { if (config.localDriveCapacityMb == null) config.localDriveCapacityMb = 256; if (config.remoteDriveCapacityMb == null) config.remoteDriveCapacityMb = 8; + if (config.maxNoteTextLength == null) config.maxNoteTextLength = 1000; + if (config.name == null) config.name = 'Misskey'; return Object.assign(config, mixin); |