diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2018-11-05 11:21:34 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-05 11:21:34 +0900 |
| commit | 136f23c7ad5845e243c699a821d2cb8a23e76c13 (patch) | |
| tree | 1b7f0fcd7ef8d8abfb70a3f4b66615ab45c7642b /src/server/api/endpoints/admin | |
| parent | Use Twemoji (diff) | |
| parent | 10.38.7 (diff) | |
| download | misskey-136f23c7ad5845e243c699a821d2cb8a23e76c13.tar.gz misskey-136f23c7ad5845e243c699a821d2cb8a23e76c13.tar.bz2 misskey-136f23c7ad5845e243c699a821d2cb8a23e76c13.zip | |
Merge branch 'develop' into twemoji
Diffstat (limited to 'src/server/api/endpoints/admin')
| -rw-r--r-- | src/server/api/endpoints/admin/update-meta.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server/api/endpoints/admin/update-meta.ts b/src/server/api/endpoints/admin/update-meta.ts index 26ade439ab..a0f2b329aa 100644 --- a/src/server/api/endpoints/admin/update-meta.ts +++ b/src/server/api/endpoints/admin/update-meta.ts @@ -59,6 +59,13 @@ export const meta = { 'ja-JP': 'インスタンスの紹介文' } }, + + maxNoteTextLength: { + validator: $.num.optional.min(1), + desc: { + 'ja-JP': '投稿の最大文字数' + } + } } }; @@ -93,6 +100,10 @@ export default define(meta, (ps) => new Promise(async (res, rej) => { set.description = ps.description; } + if (ps.maxNoteTextLength) { + set.maxNoteTextLength = ps.maxNoteTextLength; + } + await Meta.update({}, { $set: set }, { upsert: true }); |