Make max allowed text length configurable (#2992)

* Make max allowed text length configurable

* Fix canPost
This commit is contained in:
MeiMei
2018-10-24 04:00:04 +09:00
committed by syuilo
parent f24d202024
commit daa22d68fa
7 changed files with 30 additions and 7 deletions

View File

@ -49,6 +49,7 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
swPublickey: config.sw ? config.sw.public_key : null,
hidedTags: (me && me.isAdmin) ? meta.hidedTags : undefined,
bannerUrl: meta.bannerUrl,
maxNoteTextLength: config.maxNoteTextLength,
features: {
registration: !meta.disableRegistration,