From 18a172cd295bba5c17c6b5c08990361216f2d95a Mon Sep 17 00:00:00 2001 From: Namekuji Date: Wed, 9 Aug 2023 21:22:53 -0400 Subject: [PATCH] fix: wrong variable --- packages/backend/src/server/api/endpoints/notes/renotes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/notes/renotes.ts b/packages/backend/src/server/api/endpoints/notes/renotes.ts index e74a527bd5..ae48c165c0 100644 --- a/packages/backend/src/server/api/endpoints/notes/renotes.ts +++ b/packages/backend/src/server/api/endpoints/notes/renotes.ts @@ -87,7 +87,7 @@ export default define(meta, paramDef, async (ps, user) => { const filter = async (notes: ScyllaNote[]) => { let filtered = notes.filter((n) => n.renoteId === note.id); if (ps.userId) { - filtered = notes.filter((n) => n.userId === ps.userId); + filtered = filtered.filter((n) => n.userId === ps.userId); } filtered = await filterVisibility(filtered, user, followingUserIds); if (user) {