Stop proxying Reddit#1068
Merged
Merged
Conversation
… types
- Replace fetchRedditPosts RSS fetch with JSON API (oauth.reddit.com/r/*/new.json)
- Parse gallery images from media_metadata (HTML-decode & via html-entities)
- Parse crosspost parent from crosspost_parent_list[0] (subreddit/title/author/body/link)
- Parse link URL and domain from url_overridden_by_dest / domain fields
- Parse poll options and vote counts from poll_data
- Normalize special Reddit thumbnail strings ('self', 'default', etc.) to null
- Expand RedditPostSchema with 7 new optional fields (postType, imageUrl, images, linkUrl, linkDomain, crosspostParent, pollData)
- Add CrosspostParentSchema, PollDataSchema, PollOptionSchema types
- Add comprehensive tests for all 5 post types (81 total, all passing)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ectly The iOS app now fetches Reddit's JSON API directly, eliminating the server as a middleman. Each device gets its own rate-limit bucket and the app no longer needs OAuth credentials on the server side. Removes: - source/ccci-stolaf-college/v1/reddit.ts - source/ccci-stolaf-college/v1/index.ts (reddit routes removed) - source/feeds/reddit.ts - source/feeds/reddit.test.ts - source/ccc-lib/reddit-auth.ts Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
hawkrives
approved these changes
May 11, 2026
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.
The iOS app now fetches Reddit's JSON API directly on-device, so the server no longer needs to be involved.
What's removed
source/ccci-stolaf-college/v1/reddit.ts— route handlerssource/feeds/reddit.ts— fetch + parse logic (JSON API and old RSS)source/feeds/reddit.test.ts— tests for the abovesource/ccc-lib/reddit-auth.ts— OAuth credentials helper (only used by the reddit feed)v1/index.tsWhy
Each device gets its own rate-limit bucket, and the client now has access to the full Reddit JSON response — galleries, polls, crossposts, link URLs — that the server-side approach was losing.
Client-side implementation: StoDevX/AAO-React-Native#7587