summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-31 13:20:24 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-31 13:20:24 +0900
commit0144575f3f3d091f7b7fbc415276df4ecc60ab43 (patch)
treef604f53c1ab6e3b04ba09ae6d6c82c2ad4aad643 /src
parentImprove performance (diff)
downloadsharkey-0144575f3f3d091f7b7fbc415276df4ecc60ab43.tar.gz
sharkey-0144575f3f3d091f7b7fbc415276df4ecc60ab43.tar.bz2
sharkey-0144575f3f3d091f7b7fbc415276df4ecc60ab43.zip
Improve performance
Diffstat (limited to 'src')
-rw-r--r--src/models/user.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/models/user.ts b/src/models/user.ts
index b25e02b282..57973d6ca1 100644
--- a/src/models/user.ts
+++ b/src/models/user.ts
@@ -181,12 +181,22 @@ export const pack = (
const fields = opts.detail ? {
} : {
+ bannerColor: false,
+ bannerUrl: false,
+ description: false,
+ notesCount: false,
+ followersCount: false,
+ followingCount: false,
+ lastUsedAt: false,
settings: false,
clientSettings: false,
profile: false,
keywords: false,
domains: false,
- pinnedNoteIds: false
+ pinnedNoteIds: false,
+ wallpaperColor: false,
+ wallpaperId: false,
+ wallpaperUrl: false
};
// Populate the user if 'user' is ID