mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-10-30 02:26:27 +01:00
389f8f8249
* Move site title helper to instance helper (name change only) * Remove newline in <title> tag * Add site_hostname helper method to wrap up local_domain value * Use site_hostname helper in places that need local_domain value
11 lines
174 B
Ruby
11 lines
174 B
Ruby
# frozen_string_literal: true
|
|
|
|
module InstanceHelper
|
|
def site_title
|
|
Setting.site_title.to_s
|
|
end
|
|
|
|
def site_hostname
|
|
Rails.configuration.x.local_domain
|
|
end
|
|
end
|