Repository navigation
Recover blocked new and rising subreddit feeds - #6
Merged
Merged
Conversation
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.
Reddit now blocks anonymous single-subreddit new/rising JSON listings, including encoded path variants. Existing top/controversial routes still work. Fall back only for explicit HTML 403s on supported new/rising feeds.
Fetch Reddit's logged-out community feed fragment for post IDs, ordering and forward pagination, then retrieve normal metadata through individual /by_id lookups. Batch metadata is also blocked. Preserve rendering, media handling, filters and NSFW checks. Bound fallback pages to 25 posts, metadata concurrency to two globally, metadata time to 30 seconds, and result caching to 32 entries/30 seconds. Reuse the existing bounded anonymous web transport and restrict the additional redirect path prefix.
Forward pagination is supported. Hide PREV for fallback pages because the web endpoint ignores reverse cursors; browser Back works. Combined feeds and all/popular are not covered. API JSON errors and other sorts retain their behavior. Generic limits and tradeoffs are documented in FORK.md.
Validation: formatting and Clippy pass; 70 offline tests pass, including ordering/deduplication, pagination conversion, allowed paths and both observed fragment layouts. Local live checks cover Rust/Pics new with distinct next pages, rising, top and controversial. No new dependencies or deployment details are included.