From 023d4dd850795a6e68a9d01634e77bb8f7e7be2d Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Thu, 14 Aug 2025 02:35:22 -0400 Subject: [PATCH] fix ignoring the result of .filter() in FanoutTimelineEndpointService --- packages/backend/src/core/FanoutTimelineEndpointService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/core/FanoutTimelineEndpointService.ts b/packages/backend/src/core/FanoutTimelineEndpointService.ts index 8c3c8687b8..3637bb0358 100644 --- a/packages/backend/src/core/FanoutTimelineEndpointService.ts +++ b/packages/backend/src/core/FanoutTimelineEndpointService.ts @@ -216,9 +216,9 @@ export class FanoutTimelineEndpointService { // These fields *must* be populated or NoteVisibilityService won't work right! await this.populateUsers(notes); - notes.filter(noteFilter).sort((a, b) => idCompare(a.id, b.id)); - - return notes; + return notes + .filter(noteFilter) + .sort((a, b) => idCompare(a.id, b.id)); } private async populateUsers(notes: MiNote[]): Promise {