mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
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
|