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:
David Taylor 2023-06-30 11:30:03 +01:00 committed by GitHub
parent e3ddc7c93d
commit e9387e238c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ module Oneboxer
"http://store.steampowered.com",
"http://vimeo.com",
"https://www.youtube.com",
"https://twitter.com",
Discourse.base_url,
]
end