Skip to content

Feed entry titles are links, reddit.com pages read as their feeds - #60

Merged
only-cli merged 1 commit into
mainfrom
fix/feed-entry-link
Sep 4, 2026
Merged

Feed entry titles are links, reddit.com pages read as their feeds#60
only-cli merged 1 commit into
mainfrom
fix/feed-entry-link

Conversation

@only-cli

@only-cli only-cli commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Fixes #59.

  • feedToHTML makes each entry's title the link to the entry. The separate open anchor carried the same label on every entry, so the repeated-controls filter hid them all on any feed with five or more entries, and oc do <n> on a post in a subreddit feed read its heading instead of following it.
  • fetchPage reads 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.
  • Tests: the Stack Overflow and Reddit fixtures assert the heading carries the link, a 25-entry feed keeps every link with no repeated-controls note, and the URL mapping is covered shape by shape. 219 tests pass.
  • Checked live on https://www.reddit.com/r/ClaudeAI/.rss: oc do 1 now opens the first post's comments feed.
  • README access paragraph and CHANGELOG updated under Unreleased.

…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.
@only-cli
only-cli merged commit 10c22e7 into main Sep 4, 2026
4 checks passed
@only-cli
only-cli deleted the fix/feed-entry-link branch September 4, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feed entries have no followable link: the per entry open anchor is hidden as a repeated control

1 participant