diff --git a/Gemfile.lock b/Gemfile.lock index b7ad587144e..c1bcee910d9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -214,7 +214,7 @@ GEM omniauth-twitter (1.3.0) omniauth-oauth (~> 1.1) rack - onebox (1.8.6) + onebox (1.8.8) fast_blank (>= 1.0.0) htmlentities (~> 4.3) moneta (~> 1.0) diff --git a/config/initializers/100-onebox_options.rb b/config/initializers/100-onebox_options.rb index 9726a5aadcf..140929627aa 100644 --- a/config/initializers/100-onebox_options.rb +++ b/config/initializers/100-onebox_options.rb @@ -2,5 +2,6 @@ require_dependency 'twitter_api' Onebox.options = { twitter_client: TwitterApi, - redirect_limit: 1 + redirect_limit: 1, + user_agent: "Discouse Forum Onebox v#{Discourse::VERSION::STRING}" }