mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-09-11 12:49:19 +00:00
* 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
12 lines
174 B
Ruby
12 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
|