mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 01:38:10 +08:00
FIX: Do not follow redirects for twitter oneboxes (#22362)
Twitter is now redirecting anonymous users (with a browser-like user agent, which FinalDestination uses) to the login page. Skipping redirect-following for twitter.com will allow us to continue oneboxing tweets via the OpenGraph data and the API (when credentials are present). https://meta.discourse.org/t/269371/17
This commit is contained in:
@ -29,6 +29,7 @@ module Oneboxer
|
||||
"http://store.steampowered.com",
|
||||
"http://vimeo.com",
|
||||
"https://www.youtube.com",
|
||||
"https://twitter.com",
|
||||
Discourse.base_url,
|
||||
]
|
||||
end
|
||||
|
Reference in New Issue
Block a user