Skip to content

Add Reddit with custom subreddits - #115

Open
Snuux wants to merge 14 commits into
karakanb:masterfrom
Snuux:add-reddit
Open

Snuux wants to merge 14 commits into
karakanb:masterfrom
Snuux:add-reddit

Conversation

@Snuux

@Snuux Snuux commented Nov 11, 2026

Copy link
Copy Markdown

Goal

Add Reddit as a platform, with the subreddits and sort order picked by the user instead of a fixed feed.

Changes

  • Reddit card: posts from the chosen subreddits, rows in the Hacker News style (domain, score, author, age, comments)
  • settings button in the card title, shown only for platforms that have a settings panel
  • Reddit settings panel: subreddits, sort (Hot, Top today, Top this week), where to show the subreddit (in the title or in the details line)
  • "Import from my account" fills the subreddits from the user's subscriptions
  • changing subreddits or sort drops the Reddit cache, changing only the subreddit placement keeps it
  • platform dataUrl and transform can use the store state, platforms can pass fetch options
  • platform cards show an error message instead of failing silently when a fetch fails
  • README mentions Reddit

Notes

  • Reddit answers 403 to anonymous requests, so the listing is loaded with credentials: 'include' and the card needs the user to be signed in to reddit.com in the same browser.
  • From an extension Reddit also blocks /hot.json, /new.json and /rising.json even when signed in, while /r/<subs>.json (same as hot) and /top.json work. That is why hot uses the bare listing and New/Rising are not offered. An old saved sort falls back to Hot.
  • Unrelated, but found while testing: Product Hunt (devo.ams3.digitaloceanspaces.com returns NoSuchBucket) and Designer News (designernews.co does not respond) currently fail to load on master as well.

Verification

  • unit tests: 26 passed
  • vue-cli-service build passes; the remaining lint errors are in files this branch does not touch
  • checked in Edge as an unpacked extension: posts load for 25 subreddits, Hot and Top, import of subscriptions, both subreddit placements, night mode

This branch has not been deployed

No deployments
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.

1 participant