mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02: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
|