From 9c795c95b2df1b7adf6b93cd892423fcd944c1a7 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 13 Apr 2015 00:40:19 -0700 Subject: [PATCH] turl -> thumbURL --- src/General/Build.coffee | 4 ++-- src/General/lib/fetcher.class | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/General/Build.coffee b/src/General/Build.coffee index 358943b34..1682ec05c 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -64,7 +64,7 @@ Build = MD5: data.md5 size: $.bytesToString data.fsize sizeInBytes: data.fsize - turl: "#{location.protocol}//i.4cdn.org/#{boardID}/#{data.tim}s.jpg" + thumbURL: "#{location.protocol}//i.4cdn.org/#{boardID}/#{data.tim}s.jpg" theight: data.tn_h twidth: data.tn_w isSpoiler: !!data.spoiler @@ -112,7 +112,7 @@ Build = fileURL = file.url.replace protocol, '' shortFilename = Build.shortFilename file.name fileDims = if file.url[-4..] is '.pdf' then 'PDF' else "#{file.width}x#{file.height}" - fileThumb = if file.isSpoiler then Build.spoilerThumb(boardID) else file.turl.replace(protocol, '') + fileThumb = if file.isSpoiler then Build.spoilerThumb(boardID) else file.thumbURL.replace(protocol, '') fileBlock = <%= importHTML('Build/File') %> diff --git a/src/General/lib/fetcher.class b/src/General/lib/fetcher.class index dd3e74b0b..283dabcd9 100644 --- a/src/General/lib/fetcher.class +++ b/src/General/lib/fetcher.class @@ -156,7 +156,7 @@ class Fetcher MD5: data.media.media_hash size: $.bytesToString data.media.media_size sizeInBytes: data.media.media_size - turl: data.media.thumb_link or "#{location.protocol}//i.4cdn.org/#{@boardID}/#{data.media.preview_orig}" + thumbURL: data.media.thumb_link or "#{location.protocol}//i.4cdn.org/#{@boardID}/#{data.media.preview_orig}" theight: data.media.preview_h twidth: data.media.preview_w isSpoiler: data.media.spoiler is '1' @@ -168,7 +168,7 @@ class Fetcher new Thread @threadID, board post = new Post Build.post(o), thread, board post.kill() - post.file.thumbURL = o.file.turl if post.file + post.file.thumbURL = o.file.thumbURL if post.file post.isFetchedQuote = true Main.callbackNodes Post, [post] @insert post