From 84ae2475c4efcdedd61bce3ad92cb686009b4133 Mon Sep 17 00:00:00 2001 From: Hamlet Jiang Su Date: Tue, 6 Jan 2026 10:58:36 -0800 Subject: [PATCH] fix: fix duplicated posts displaying at the end of the feed --- lib/src/features/feed/presentation/bloc/feed_bloc.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/features/feed/presentation/bloc/feed_bloc.dart b/lib/src/features/feed/presentation/bloc/feed_bloc.dart index 7964bf603..82827f90f 100644 --- a/lib/src/features/feed/presentation/bloc/feed_bloc.dart +++ b/lib/src/features/feed/presentation/bloc/feed_bloc.dart @@ -575,7 +575,8 @@ class FeedBloc extends Bloc { } // If the feed is already being fetched but it is not a reset, then just wait - if (state.status == FeedStatus.fetching) return; + // If the cursor is null, then we are at the end of the feed so we don't need to fetch any more + if (state.status == FeedStatus.fetching || state.cursor == null) return; // Handle fetching the next page of the feed emit(state.copyWith(status: FeedStatus.fetching));