summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-13 20:11:00 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-13 20:11:00 +0900
commit65e5cfa68eee619843192f3bf2a3e901a0910101 (patch)
tree6ed53b64d96371a5543208b5815718492aebe753 /src/server/api/endpoints
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadsharkey-65e5cfa68eee619843192f3bf2a3e901a0910101.tar.gz
sharkey-65e5cfa68eee619843192f3bf2a3e901a0910101.tar.bz2
sharkey-65e5cfa68eee619843192f3bf2a3e901a0910101.zip
Resolve #2853
Diffstat (limited to 'src/server/api/endpoints')
-rw-r--r--src/server/api/endpoints/i/update.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/api/endpoints/i/update.ts b/src/server/api/endpoints/i/update.ts
index 548ce5cadb..77825a4aaa 100644
--- a/src/server/api/endpoints/i/update.ts
+++ b/src/server/api/endpoints/i/update.ts
@@ -67,6 +67,12 @@ export const meta = {
}
}),
+ carefulBot: $.bool.optional.note({
+ desc: {
+ 'ja-JP': 'Botからのフォローを承認制にするか'
+ }
+ }),
+
isBot: $.bool.optional.note({
desc: {
'ja-JP': 'Botか否か'
@@ -110,6 +116,7 @@ export default async (params: any, user: ILocalUser, app: IApp) => new Promise(a
if (ps.wallpaperId !== undefined) updates.wallpaperId = ps.wallpaperId;
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.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;