mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fix issue where unstripped title is displayed in browse
This commit is contained in:
parent
0bd8557620
commit
d559dc8b99
1 changed files with 8 additions and 4 deletions
|
@ -1260,11 +1260,15 @@ class Site < Sequel::Model
|
|||
end
|
||||
|
||||
def title
|
||||
if values[:title].nil? || values[:title].empty?
|
||||
!domain.nil? && !domain.empty? ? domain : "#{username}.neocities.org"
|
||||
begin
|
||||
if values[:title].blank? || values[:title].strip.empty?
|
||||
!domain.nil? && !domain.empty? ? domain : host
|
||||
else
|
||||
values[:title]
|
||||
end
|
||||
rescue
|
||||
host
|
||||
end
|
||||
end
|
||||
|
||||
def screenshots_delete(path)
|
||||
|
|
Loading…
Add table
Reference in a new issue