feat: add option to hide duplicate articles within the same feed - #1330
Open
nethbotheju wants to merge 1 commit into
Open
nethbotheju wants to merge 1 commit into
nethbotheju wants to merge 1 commit into
Conversation
- hide same-title articles in feed, group, and search lists, always keeping the oldest copy - apply the same dedup to unread/all badge counts so numbers match the visible list - add a Usage setting (off by default) that instantly refreshes lists and badges when toggled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Some feeds publish the same article multiple times (same title, slightly different
timestamp/link), which clutters the article list, the unread view, and the unread
badge counts.
Changes
Adds a new setting Settings → Usage → Article list → "Hide duplicate articles"
(default off). When enabled, an article is hidden if an earlier article with the
same title exists in the same feed — the oldest copy is always the one kept.
Applied consistently to:
Design decisions
two outlets reporting the same story is not a duplicate.
copy as read does not resurface a newer unread duplicate in the Unread view.
NOT EXISTSsubquery in the DAO queries) rather thanKotlin-side filtering, so deduplication stays correct across Paging page
boundaries, and the same clause keeps badge counts consistent.
toggling off restores the full list immediately.
Testing
testGithubDebugUnitTest).githubrelease APK from CI and tested on a physical device:duplicates collapse to the oldest entry in feed/group/unread views, badge counts
match, cross-feed same-title articles both remain, starred view unaffected,
toggling off restores everything.
Screenshots