Update user.ts
This commit is contained in:
parent
1323a08a5f
commit
e22a6f2913
@ -37,7 +37,9 @@ export default (
|
|||||||
data: false
|
data: false
|
||||||
} : {
|
} : {
|
||||||
data: false,
|
data: false,
|
||||||
profile: false
|
profile: false,
|
||||||
|
keywords: false,
|
||||||
|
domains: false
|
||||||
};
|
};
|
||||||
|
|
||||||
// Populate the user if 'user' is ID
|
// Populate the user if 'user' is ID
|
||||||
@ -119,6 +121,7 @@ export default (
|
|||||||
|
|
||||||
if (opts.detail) {
|
if (opts.detail) {
|
||||||
if (_user.pinned_post_id) {
|
if (_user.pinned_post_id) {
|
||||||
|
// Populate pinned post
|
||||||
_user.pinned_post = await serializePost(_user.pinned_post_id, meId, {
|
_user.pinned_post = await serializePost(_user.pinned_post_id, meId, {
|
||||||
detail: true
|
detail: true
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user