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