diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-09-18 22:18:21 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-18 22:18:21 +0900 |
| commit | df71dbb0242d763695ea8a33d0b2262c74b050d0 (patch) | |
| tree | 804eddb878fbe86f181b76cb3ed814f00ef3433f /src/server/api/endpoints/i | |
| parent | chore: better error text (diff) | |
| download | sharkey-df71dbb0242d763695ea8a33d0b2262c74b050d0.tar.gz sharkey-df71dbb0242d763695ea8a33d0b2262c74b050d0.tar.bz2 sharkey-df71dbb0242d763695ea8a33d0b2262c74b050d0.zip | |
Resolve #6692 (#6703)
Diffstat (limited to 'src/server/api/endpoints/i')
| -rw-r--r-- | src/server/api/endpoints/i/update.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/i/update.ts b/src/server/api/endpoints/i/update.ts index 327e303a66..2029f2b4b6 100644 --- a/src/server/api/endpoints/i/update.ts +++ b/src/server/api/endpoints/i/update.ts @@ -149,7 +149,7 @@ export const meta = { validator: $.optional.arr($.arr($.str)) }, - includingNotificationTypes: { + mutingNotificationTypes: { validator: $.optional.arr($.str.or(notificationTypes as unknown as string[])) }, }, @@ -206,7 +206,7 @@ export default define(meta, async (ps, user, token) => { profileUpdates.mutedWords = ps.mutedWords; profileUpdates.enableWordMute = ps.mutedWords.length > 0; } - if (ps.includingNotificationTypes !== undefined) profileUpdates.includingNotificationTypes = ps.includingNotificationTypes as typeof notificationTypes[number][]; + if (ps.mutingNotificationTypes !== undefined) profileUpdates.mutingNotificationTypes = ps.mutingNotificationTypes as typeof notificationTypes[number][]; if (typeof ps.isLocked === 'boolean') updates.isLocked = ps.isLocked; if (typeof ps.isBot === 'boolean') updates.isBot = ps.isBot; if (typeof ps.carefulBot === 'boolean') profileUpdates.carefulBot = ps.carefulBot; |