discourse/config/initializers/100-onebox_options.rb

10 lines
207 B
Ruby

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