Feed entry titles are links, reddit.com pages read as their feeds - #60
Merged
Conversation
…r feeds The entry link sat beside the byline as an anchor labelled "open", the same label on every entry, and the repeated-controls filter hid them all on any feed with five or more entries. Nothing in a subreddit listing led to a post, so `oc do <n>` on one read its heading instead of following it, and an agent hunting for the link refetched the feed into Reddit's 429. The title is now the link, which headingHref already turns into a followable heading. Following a post out of a feed then landed on the reddit.com HTML page, a login wall for a logged-out reader, so fetchPage maps reddit.com front page, subreddit, post, user and search URLs to their www.reddit.com Atom feeds when the request carries no cookies for the site. Feeds, other paths, and logged-in sessions are fetched as asked. Fixes #59.
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.
Fixes #59.
feedToHTMLmakes each entry's title the link to the entry. The separateopenanchor carried the same label on every entry, so the repeated-controls filter hid them all on any feed with five or more entries, andoc do <n>on a post in a subreddit feed read its heading instead of following it.fetchPagereads reddit.com front page, subreddit, post, user and search URLs as their www.reddit.com Atom feeds when the request carries no cookies for the site, so following a post out of a feed lands on its comments feed rather than the login wall. Feeds, other reddit.com paths, and logged-in sessions are fetched as asked.https://www.reddit.com/r/ClaudeAI/.rss:oc do 1now opens the first post's comments feed.