summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/i
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-11-07 18:04:32 +0900
committerGitHub <noreply@github.com>2021-11-07 18:04:32 +0900
commita28c515ef63a6f9c188cf0a7f544db1afa8e1331 (patch)
tree4b207f6998e0697ab5c732c04769b069dfd054c7 /src/server/api/endpoints/i
parentperf: delete-account処理を軽くする (#7958) (diff)
downloadsharkey-a28c515ef63a6f9c188cf0a7f544db1afa8e1331.tar.gz
sharkey-a28c515ef63a6f9c188cf0a7f544db1afa8e1331.tar.bz2
sharkey-a28c515ef63a6f9c188cf0a7f544db1afa8e1331.zip
feat: make possible to configure following/followers visibility (#7959)
* feat: make possible to configure following/followers visibility * add test * ap * add ap test * set Cache-Control * hide following/followers count
Diffstat (limited to 'src/server/api/endpoints/i')
-rw-r--r--src/server/api/endpoints/i/update.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/api/endpoints/i/update.ts b/src/server/api/endpoints/i/update.ts
index 3b8b1579ea..d0f201ab60 100644
--- a/src/server/api/endpoints/i/update.ts
+++ b/src/server/api/endpoints/i/update.ts
@@ -72,6 +72,10 @@ export const meta = {
validator: $.optional.bool,
},
+ ffVisibility: {
+ validator: $.optional.str,
+ },
+
carefulBot: {
validator: $.optional.bool,
},
@@ -174,6 +178,7 @@ export default define(meta, async (ps, _user, token) => {
if (ps.lang !== undefined) profileUpdates.lang = ps.lang;
if (ps.location !== undefined) profileUpdates.location = ps.location;
if (ps.birthday !== undefined) profileUpdates.birthday = ps.birthday;
+ if (ps.ffVisibility !== undefined) profileUpdates.ffVisibility = ps.ffVisibility;
if (ps.avatarId !== undefined) updates.avatarId = ps.avatarId;
if (ps.bannerId !== undefined) updates.bannerId = ps.bannerId;
if (ps.mutedWords !== undefined) {