Skip to content
Snippets Groups Projects
Commit ef44c62d authored by Akihiko Odaki's avatar Akihiko Odaki Committed by Eugen Rochko
Browse files

Do not default site_title with site_hostname in InstanceHelper (#6624)

site_title is "Mastodon" by default configuration, and there is no need to
default site_title with site_hostname in InstanceHelper.
parent 219aac78
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
module InstanceHelper
def site_title
Setting.site_title.presence || site_hostname
Setting.site_title
end
def site_hostname
......
......@@ -15,12 +15,6 @@ describe InstanceHelper do
expect(helper.site_title).to eq 'New site title'
end
it 'returns empty string when Setting.site_title is nil' do
Setting.site_title = nil
expect(helper.site_title).to eq 'cb6e6126.ngrok.io'
end
end
describe 'site_hostname' do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment