From c730973294872f261279d84a05d679ab335b4f9c Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 14 Jan 2023 13:36:18 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E5=88=86=20fix=20#9551?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/server/api/endpoints/following/requests/list.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/following/requests/list.ts b/packages/backend/src/server/api/endpoints/following/requests/list.ts index f581023e2e..d68248fab9 100644 --- a/packages/backend/src/server/api/endpoints/following/requests/list.ts +++ b/packages/backend/src/server/api/endpoints/following/requests/list.ts @@ -60,7 +60,8 @@ export default class extends Endpoint { private queryService: QueryService, ) { super(meta, paramDef, async (ps, me) => { - const query = this.queryService.makePaginationQuery(this.followRequestsRepository.createQueryBuilder('request'), ps.sinceId, ps.untilId); + const query = this.queryService.makePaginationQuery(this.followRequestsRepository.createQueryBuilder('request'), ps.sinceId, ps.untilId) + .andWhere('request.followeeId = :meId', { meId: me.id }); const requests = await query .take(ps.limit)