[API] Include detailed user information for block/mute response

This commit is contained in:
syuilo 2018-10-31 23:34:35 +09:00
parent 5b0fd8c97c
commit ce22c907e8
2 changed files with 6 additions and 2 deletions

View file

@ -48,7 +48,9 @@ export const pack = (
delete _blocking._id;
// Populate blockee
_blocking.blockee = await packUser(_blocking.blockeeId, me);
_blocking.blockee = await packUser(_blocking.blockeeId, me, {
detail: true
});
resolve(_blocking);
});

View file

@ -48,7 +48,9 @@ export const pack = (
delete _mute._id;
// Populate mutee
_mute.mutee = await packUser(_mute.muteeId, me);
_mute.mutee = await packUser(_mute.muteeId, me, {
detail: true
});
resolve(_mute);
});