Update user.ts

This commit is contained in:
こぴなたみぽ 2017-09-09 04:39:23 +09:00 committed by GitHub
parent c5ffbf9901
commit bc954de9f8

View File

@ -37,7 +37,9 @@ export default (
data: false
} : {
data: false,
profile: false
profile: false,
keywords: false,
domains: false
};
// Populate the user if 'user' is ID
@ -119,6 +121,7 @@ export default (
if (opts.detail) {
if (_user.pinned_post_id) {
// Populate pinned post
_user.pinned_post = await serializePost(_user.pinned_post_id, meId, {
detail: true
});