Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Kirjaudu sisään
abunchtell
/
mastodon
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Toiminta
Selaa lähdekoodia
Fallback to site_hostname when site_title is empty (
#4394
)
master
Yamagishi Kazutoshi
6 vuotta sitten
committed by
Eugen Rochko
vanhempi
5bf4838e2f
commit
bb96ba13cf
2 muutettua tiedostoa
jossa
2 lisäystä
ja
2 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/helpers/instance_helper.rb
+1
-1
spec/helpers/instance_helper_spec.rb
+ 1
- 1
app/helpers/instance_helper.rb
Näytä tiedosto
@@ -2,7 +2,7 @@
module InstanceHelper
def site_title
Setting.site_title.
to_s
Setting.site_title.
presence || site_hostname
end
def site_hostname
+ 1
- 1
spec/helpers/instance_helper_spec.rb
Näytä tiedosto
@@ -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
Kirjoita
Esikatselu
Ladataan…
Peruuta
Tallenna