Fix: Adjust home TL post dedup to ensure polling works correctly

zio/stable
Paul Frazee 2022-11-23 13:29:26 -06:00
parent fbcf0d79d1
commit 1370353ff6
1 changed files with 2 additions and 1 deletions

View File

@ -488,7 +488,8 @@ function preprocessFeed(
for (let i = feed.length - 1; i >= 0; i--) { for (let i = feed.length - 1; i >= 0; i--) {
const item = feed[i] as FeedItemWithThreadMeta const item = feed[i] as FeedItemWithThreadMeta
if (dedup) { // dont dedup the first item so that polling works properly
if (dedup && i !== 0) {
if (reorg.find(item2 => item2.uri === item.uri)) { if (reorg.find(item2 => item2.uri === item.uri)) {
continue continue
} }