mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 13:09:33 -06:00
10 lines
271 B
Ruby
10 lines
271 B
Ruby
# frozen_string_literal: true
|
|
|
|
class HomepageHelper
|
|
def self.resolve(request = nil, current_user = nil)
|
|
return "custom" if ThemeModifierHelper.new(request: request).custom_homepage
|
|
|
|
current_user ? SiteSetting.homepage : SiteSetting.anonymous_homepage
|
|
end
|
|
end
|