Change Site.hostname to '4chan.org' on 4cdn.org also.

This commit is contained in:
ccd0 2018-12-05 20:19:36 -08:00
parent 8e3517735e
commit 7b5759cc09

View File

@ -9,7 +9,6 @@ Site =
{hostname} = location
while hostname and hostname not of Conf['siteProperties']
hostname = hostname.replace(/^[^.]*\.?/, '')
hostname = '4chan.org' if hostname is '4channel.org'
if hostname and Conf['siteProperties'][hostname].software of SW
@set hostname
cb()
@ -33,4 +32,5 @@ Site =
set: (@hostname) ->
@properties = Conf['siteProperties'][@hostname]
@software = @properties.software
@hostname = '4chan.org' if @software is 'yotsuba'
$.extend @, SW[@software]