Remove extra slash for screenshot url

This commit is contained in:
Kyle Drake 2018-12-29 17:37:18 -08:00
parent 8576d954b0
commit 0b5b07aad4

View file

@ -1453,7 +1453,7 @@ class Site < Sequel::Model
def screenshot_url(path, resolution) def screenshot_url(path, resolution)
out = '' out = ''
out = 'https://neocities.org/' if ENV['RACK_ENV'] == 'development' out = 'https://neocities.org' if ENV['RACK_ENV'] == 'development'
out+"#{SCREENSHOTS_URL_ROOT}/#{self.class.sharding_dir(values[:username])}/#{values[:username]}/#{path}.#{resolution}.jpg" out+"#{SCREENSHOTS_URL_ROOT}/#{self.class.sharding_dir(values[:username])}/#{values[:username]}/#{path}.#{resolution}.jpg"
end end