diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2018-12-28 21:36:58 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-12-28 21:36:58 +0900 |
| commit | 8823a6c1a1ffebe96c3646896ae84cfc91eeadf4 (patch) | |
| tree | 6358d6c6481ea09a9a3b2342c0215f7072d311a9 /src/server/api/endpoints/i | |
| parent | Supports CSS Scrollbars (#3783) (diff) | |
| download | sharkey-8823a6c1a1ffebe96c3646896ae84cfc91eeadf4.tar.gz sharkey-8823a6c1a1ffebe96c3646896ae84cfc91eeadf4.tar.bz2 sharkey-8823a6c1a1ffebe96c3646896ae84cfc91eeadf4.zip | |
フォローしているユーザーからのフォローを自動承認するオプション (#3780)
Diffstat (limited to 'src/server/api/endpoints/i')
| -rw-r--r-- | src/server/api/endpoints/i/update.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/api/endpoints/i/update.ts b/src/server/api/endpoints/i/update.ts index 7bdd52883c..ec6aaa04da 100644 --- a/src/server/api/endpoints/i/update.ts +++ b/src/server/api/endpoints/i/update.ts @@ -94,6 +94,13 @@ export const meta = { } }, + autoAcceptFollowed: { + validator: $.bool.optional, + desc: { + 'ja-JP': 'フォローしているユーザーからのフォローリクエストを自動承認するか' + } + }, + isBot: { validator: $.bool.optional, desc: { @@ -140,6 +147,7 @@ export default define(meta, (ps, user, app) => new Promise(async (res, rej) => { if (typeof ps.isLocked == 'boolean') updates.isLocked = ps.isLocked; if (typeof ps.isBot == 'boolean') updates.isBot = ps.isBot; if (typeof ps.carefulBot == 'boolean') updates.carefulBot = ps.carefulBot; + if (typeof ps.autoAcceptFollowed == 'boolean') updates.autoAcceptFollowed = ps.autoAcceptFollowed; if (typeof ps.isCat == 'boolean') updates.isCat = ps.isCat; if (typeof ps.autoWatch == 'boolean') updates['settings.autoWatch'] = ps.autoWatch; if (typeof ps.alwaysMarkNsfw == 'boolean') updates['settings.alwaysMarkNsfw'] = ps.alwaysMarkNsfw; |