Skip to content
Snippets Groups Projects
Commit bb96ba13 authored by Yamagishi Kazutoshi's avatar Yamagishi Kazutoshi Committed by Eugen Rochko
Browse files

Fallback to site_hostname when site_title is empty (#4394)

parent 5bf4838e
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.to_s
Setting.site_title.presence || site_hostname
end
def site_hostname
......
......@@ -19,7 +19,7 @@ describe InstanceHelper do
it 'returns empty string when Setting.site_title is nil' do
Setting.site_title = nil
expect(helper.site_title).to eq ''
expect(helper.site_title).to eq 'cb6e6126.ngrok.io'
end
end
......
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