mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 17:06:31 -06:00
008b700a3f
This patch upgrades Rails to version 7.0.2.4.
19 lines
523 B
Ruby
19 lines
523 B
Ruby
# frozen_string_literal: true
|
|
|
|
Rails.application.config.to_prepare do
|
|
if Rails.env.development? && SiteSetting.port.to_i > 0
|
|
Onebox.options = {
|
|
twitter_client: TwitterApi,
|
|
redirect_limit: 3,
|
|
user_agent: "Discourse Forum Onebox v#{Discourse::VERSION::STRING}",
|
|
allowed_ports: [80, 443, SiteSetting.port.to_i]
|
|
}
|
|
else
|
|
Onebox.options = {
|
|
twitter_client: TwitterApi,
|
|
redirect_limit: 3,
|
|
user_agent: "Discourse Forum Onebox v#{Discourse::VERSION::STRING}"
|
|
}
|
|
end
|
|
end
|