fix issue where unstripped title is displayed in browse

This commit is contained in:
Kyle Drake 2017-07-06 10:26:45 -07:00
parent 0bd8557620
commit d559dc8b99

View file

@ -1260,10 +1260,14 @@ class Site < Sequel::Model
end end
def title def title
if values[:title].nil? || values[:title].empty? begin
!domain.nil? && !domain.empty? ? domain : "#{username}.neocities.org" if values[:title].blank? || values[:title].strip.empty?
else !domain.nil? && !domain.empty? ? domain : host
values[:title] else
values[:title]
end
rescue
host
end end
end end