From c92176f10ce01904791cd2d8e62d07a13910b51b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Tue, 26 Aug 2025 12:07:58 +0200 Subject: [PATCH] pl-fe: probably fix duplicate posts appearing in timeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/reducers/timelines.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pl-fe/src/reducers/timelines.ts b/packages/pl-fe/src/reducers/timelines.ts index 43e9d20f9..27eac1517 100644 --- a/packages/pl-fe/src/reducers/timelines.ts +++ b/packages/pl-fe/src/reducers/timelines.ts @@ -132,7 +132,7 @@ const appendStatus = (state: State, timelineId: string, statusId: string) => { const oldIds = state[timelineId]?.items || []; const unread = state[timelineId]?.unread || 0; - if (oldIds.includes(statusId)) return state; + if (oldIds.includes(statusId) || state[timelineId]?.queuedItems.includes(statusId)) return state; const newIds = addStatusId(oldIds, statusId);