logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: bb96ba13cf78c0bee1919c32e61bf0644c89a209
parent: 5bf4838e2f77430a0f3f72a6d9eb431930a03abd
Author: Yamagishi Kazutoshi <ykzts@desire.sh>
Date:   Thu, 27 Jul 2017 22:13:49 +0900

Fallback to site_hostname when site_title is empty (#4394)


Diffstat:

Mapp/helpers/instance_helper.rb2+-
Mspec/helpers/instance_helper_spec.rb2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/helpers/instance_helper.rb b/app/helpers/instance_helper.rb @@ -2,7 +2,7 @@ module InstanceHelper def site_title - Setting.site_title.to_s + Setting.site_title.presence || site_hostname end def site_hostname diff --git a/spec/helpers/instance_helper_spec.rb b/spec/helpers/instance_helper_spec.rb @@ -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