From fb6605bb40fe2179982bcfd16669e6a655028f69 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 31 Oct 2020 10:19:10 +0900 Subject: [PATCH] =?UTF-8?q?API:=20blocking/create=20or=20delete=E3=81=A7?= =?UTF-8?q?=E5=AE=8C=E5=85=A8=E3=81=AAUser=E6=83=85=E5=A0=B1=E3=82=92?= =?UTF-8?q?=E8=BF=94=E3=81=99=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/api/endpoints/blocking/create.ts | 4 +++- src/server/api/endpoints/blocking/delete.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/server/api/endpoints/blocking/create.ts b/src/server/api/endpoints/blocking/create.ts index f5b50dd5a5..bdaccc79ed 100644 --- a/src/server/api/endpoints/blocking/create.ts +++ b/src/server/api/endpoints/blocking/create.ts @@ -87,5 +87,7 @@ export default define(meta, async (ps, user) => { noteUserId: blockee.id }); - return await Users.pack(blockee.id, user); + return await Users.pack(blockee.id, user, { + detail: true + }); }); diff --git a/src/server/api/endpoints/blocking/delete.ts b/src/server/api/endpoints/blocking/delete.ts index 895fe5d50c..451da1c915 100644 --- a/src/server/api/endpoints/blocking/delete.ts +++ b/src/server/api/endpoints/blocking/delete.ts @@ -82,5 +82,7 @@ export default define(meta, async (ps, user) => { // Delete blocking await deleteBlocking(blocker, blockee); - return await Users.pack(blockee.id, user); + return await Users.pack(blockee.id, user, { + detail: true + }); });