Change is2.4chan.org image links to i.4cdn.org also.

This commit is contained in:
ccd0 2017-01-05 03:43:02 -08:00
parent 86ce0af652
commit 8fbf8a323c

View File

@ -7,7 +7,7 @@ ImageHost =
node: ->
return if @isClone
if @file and (m = @file.url.match /^https?:\/\/is\.4chan\.org\/(.*)$/)
if @file and (m = @file.url.match /^https?:\/\/is\d*\.4chan\.org\/(.*)$/)
@file.link.hostname = 'i.4cdn.org'
@file.thumbLink.hostname = 'i.4cdn.org' if @file.thumbLink
@file.url = @file.link.href