Skip to content

Fix: prevent generating duplicated articles in Discover - #6995

Open
cooltey wants to merge 2 commits into
mainfrom
discover-helper-optimize
Open

cooltey wants to merge 2 commits into
mainfrom
discover-helper-optimize

Conversation

@cooltey

@cooltey cooltey commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

What does this do?

We have run generateRecommendedReadingList() in multiple places, and it depends on network speed vs. the database insert sequence, where users might see duplicated articles when the process of loading the Discover list takes a long time.

This PR mainly uses a Mutex to make sure the generateRecommendedReadingList() happens one at a time, and updates the logic for checking the existing pages when generating the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cooltey
cooltey requested a review from dbrant as a code owner October 13, 2026 20:44
@cooltey cooltey added the Minor Minor stuff label Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Minor Minor stuff

Development

Successfully merging this pull request may close these issues.

2 participants