mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 11:26:14 +02:00
[API] Include detailed user information of blocking API responses
This commit is contained in:
@@ -71,5 +71,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
|
||||
await create(blocker, blockee);
|
||||
|
||||
// Send response
|
||||
res(await pack(blockee._id, user));
|
||||
res(await pack(blockee._id, user, {
|
||||
detail: true
|
||||
}));
|
||||
});
|
||||
|
||||
@@ -71,5 +71,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
|
||||
await deleteBlocking(blocker, blockee);
|
||||
|
||||
// Send response
|
||||
res(await pack(blockee._id, user));
|
||||
res(await pack(blockee._id, user, {
|
||||
detail: true
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user