[API] Include detailed user information for block/mute response
This commit is contained in:
parent
261a3f5d91
commit
c15148b23c
|
@ -48,7 +48,9 @@ export const pack = (
|
||||||
delete _blocking._id;
|
delete _blocking._id;
|
||||||
|
|
||||||
// Populate blockee
|
// Populate blockee
|
||||||
_blocking.blockee = await packUser(_blocking.blockeeId, me);
|
_blocking.blockee = await packUser(_blocking.blockeeId, me, {
|
||||||
|
detail: true
|
||||||
|
});
|
||||||
|
|
||||||
resolve(_blocking);
|
resolve(_blocking);
|
||||||
});
|
});
|
||||||
|
|
|
@ -48,7 +48,9 @@ export const pack = (
|
||||||
delete _mute._id;
|
delete _mute._id;
|
||||||
|
|
||||||
// Populate mutee
|
// Populate mutee
|
||||||
_mute.mutee = await packUser(_mute.muteeId, me);
|
_mute.mutee = await packUser(_mute.muteeId, me, {
|
||||||
|
detail: true
|
||||||
|
});
|
||||||
|
|
||||||
resolve(_mute);
|
resolve(_mute);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue