mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +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:
parent
e3ddc7c93d
commit
e9387e238c
|
@ -29,6 +29,7 @@ module Oneboxer
|
|||
"http://store.steampowered.com",
|
||||
"http://vimeo.com",
|
||||
"https://www.youtube.com",
|
||||
"https://twitter.com",
|
||||
Discourse.base_url,
|
||||
]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user