mirror of
https://github.com/mastodon/mastodon
synced 2024-12-21 18:18:13 +09: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
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
|