From 8fbf8a323c5c38409bd5e438c79dacf3368b054d Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 5 Jan 2017 03:43:02 -0800 Subject: [PATCH] Change is2.4chan.org image links to i.4cdn.org also. --- src/Images/ImageHost.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Images/ImageHost.coffee b/src/Images/ImageHost.coffee index e65dae69b..88d88bcae 100644 --- a/src/Images/ImageHost.coffee +++ b/src/Images/ImageHost.coffee @@ -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