disable surf mode until we can figure out what to do about the clickjacking restrictions

This commit is contained in:
Kyle Drake 2014-12-23 09:23:26 -08:00
parent 8dab34bc39
commit f6ba160db6
5 changed files with 12 additions and 7 deletions

View file

@ -938,6 +938,11 @@ class Site < Sequel::Model
!domain.empty? ? domain : "#{username}.neocities.org"
end
def uri
# Switch-over for when SSL defaulting is ready
"http://#{host}"
end
def title
if values[:title].nil? || values[:title].empty?
!domain.nil? && !domain.empty? ? domain : "#{username}.neocities.org"