turl -> thumbURL
This commit is contained in:
parent
20a31c2ba5
commit
9c795c95b2
@ -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') %>
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user