Onebox Does Not Display - iFramely Passes

Yes, I can reproduce that from a VPS using curl -A "-string-"! Can we have a setting to change the user agent? :wink:

In this case that would be a lot less hassle :slight_smile:

Oh wait, I see a file:

discourse/config/initializers/100-onebox_options.rb

require_dependency 'twitter_api'

Onebox.options = {
  twitter_client: TwitterApi,
  redirect_limit: 3,
  user_agent: "Discourse Forum Onebox v#{Discourse::VERSION::STRING}"
}

Take the word forum out?

I could easily add this to my plugin of course …

3 Likes