mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 14:33:48 +08:00
5fc1586abf
Checking if the topic exists happened often and that can cause performance issues.
16 lines
272 B
Ruby
16 lines
272 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ConfigurableUrls
|
|
def faq_path
|
|
SiteSetting.faq_url.blank? ? "#{Discourse.base_path}/faq" : SiteSetting.faq_url
|
|
end
|
|
|
|
def tos_url
|
|
Discourse.tos_url
|
|
end
|
|
|
|
def privacy_policy_url
|
|
Discourse.privacy_policy_url
|
|
end
|
|
end
|