mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-02 08:04:39 +08:00
Reddit increasingly blocks server-side fetches from Discourse instances, which makes the current Reddit onebox path unreliable. This switches Reddit oneboxes to Reddit's native embed path instead of trying to fetch and render post metadata on the server. Changes: - replace the Reddit onebox engine with a native `embed.reddit.com` iframe - listen for Reddit resize messages so embeds grow to the correct height - remove the now-unused Reddit OAuth site settings and auth mixin - update Reddit onebox specs and add a JS unit test for the resize handler Screenshots: <img width="704" height="1861" alt="image" src="https://github.com/user-attachments/assets/ce332dfb-c76b-4700-ab26-fae9123cbd8c" /> |
||
|---|---|---|
| .. | ||
| git_blob_onebox.rb | ||
| github_auth_header.rb | ||
| github_body.rb | ||
| twitch_onebox.rb | ||