From 6c3a0619f6f4a7c38bfa2fb86a10baad95e9a1da Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 12 Apr 2014 21:57:40 -0700 Subject: [PATCH] remove src, thumb from image links --- src/General/Build.coffee | 6 +++--- src/General/Get.coffee | 2 +- src/General/Settings.coffee | 2 +- src/General/lib/post.class | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/General/Build.coffee b/src/General/Build.coffee index 703e78e7d..6ecd74d87 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -42,14 +42,14 @@ Build = name: data.filename + data.ext timestamp: "#{data.tim}#{data.ext}" url: if boardID is 'f' - "//i.4cdn.org/#{boardID}/src/#{data.filename}#{data.ext}" + "//i.4cdn.org/#{boardID}/#{data.filename}#{data.ext}" else - "//i.4cdn.org/#{boardID}/src/#{data.tim}#{data.ext}" + "//i.4cdn.org/#{boardID}/#{data.tim}#{data.ext}" height: data.h width: data.w MD5: data.md5 size: data.fsize - turl: "//#{Build.thumbRotate()}.t.4cdn.org/#{boardID}/thumb/#{data.tim}s.jpg" + turl: "//#{Build.thumbRotate()}.t.4cdn.org/#{boardID}/#{data.tim}s.jpg" theight: data.tn_h twidth: data.tn_w isSpoiler: !!data.spoiler diff --git a/src/General/Get.coffee b/src/General/Get.coffee index 7b74973ee..91bb8de63 100755 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -203,7 +203,7 @@ Get = width: data.media.media_w MD5: data.media.media_hash size: data.media.media_size - turl: data.media.thumb_link or "//t.4cdn.org/#{boardID}/thumb/#{data.media.preview_orig}" + turl: data.media.thumb_link or "//t.4cdn.org/#{boardID}/#{data.media.preview_orig}" theight: data.media.preview_h twidth: data.media.preview_w isSpoiler: data.media.spoiler is '1' diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee index f276ea0cf..a80d27757 100755 --- a/src/General/Settings.coffee +++ b/src/General/Settings.coffee @@ -394,7 +394,7 @@ Settings = data = isReply: true file: - URL: '//i.4cdn.org/g/src/1334437723720.jpg' + URL: '//i.4cdn.org/g/1334437723720.jpg' name: 'd9bb2efc98dd0df141a94399ff5880b7.jpg' size: '276 KB' sizeInBytes: 276 * 1024 diff --git a/src/General/lib/post.class b/src/General/lib/post.class index 3bda48402..31acad549 100755 --- a/src/General/lib/post.class +++ b/src/General/lib/post.class @@ -129,7 +129,7 @@ class Post @file.thumbURL = if that.isArchived thumb.src else - "#{location.protocol}//t.4cdn.org/#{@board}/thumb/#{@file.URL.match(/(\d+)\./)[1]}s.jpg" + "#{location.protocol}//t.4cdn.org/#{@board}/#{@file.URL.match(/(\d+)\./)[1]}s.jpg" @file.name = if nameNode = $ 'span', fileText nameNode.title or nameNode.textContent else