diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-06 08:35:25 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-06 08:35:25 +0900 |
| commit | e515276e15fdf46a1756aa321701faf0b8d09854 (patch) | |
| tree | e61267f45993f635aae7d9a58b4dce068f5022db /src/api/models/user.ts | |
| parent | #1189 (diff) | |
| download | sharkey-e515276e15fdf46a1756aa321701faf0b8d09854.tar.gz sharkey-e515276e15fdf46a1756aa321701faf0b8d09854.tar.bz2 sharkey-e515276e15fdf46a1756aa321701faf0b8d09854.zip | |
nanka iroiro
Closes #1188
Diffstat (limited to 'src/api/models/user.ts')
| -rw-r--r-- | src/api/models/user.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/models/user.ts b/src/api/models/user.ts index 2fea0566ba..ba2765c793 100644 --- a/src/api/models/user.ts +++ b/src/api/models/user.ts @@ -118,7 +118,6 @@ export const pack = ( let _user: any; const fields = opts.detail ? { - settings: false } : { settings: false, client_settings: false, @@ -173,6 +172,7 @@ export const pack = ( // Visible via only the official client if (!opts.includeSecrets) { delete _user.email; + delete _user.settings; delete _user.client_settings; } |