turl -> thumbURL
This commit is contained in:
parent
20a31c2ba5
commit
9c795c95b2
@ -64,7 +64,7 @@ Build =
|
|||||||
MD5: data.md5
|
MD5: data.md5
|
||||||
size: $.bytesToString data.fsize
|
size: $.bytesToString data.fsize
|
||||||
sizeInBytes: 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
|
theight: data.tn_h
|
||||||
twidth: data.tn_w
|
twidth: data.tn_w
|
||||||
isSpoiler: !!data.spoiler
|
isSpoiler: !!data.spoiler
|
||||||
@ -112,7 +112,7 @@ Build =
|
|||||||
fileURL = file.url.replace protocol, ''
|
fileURL = file.url.replace protocol, ''
|
||||||
shortFilename = Build.shortFilename file.name
|
shortFilename = Build.shortFilename file.name
|
||||||
fileDims = if file.url[-4..] is '.pdf' then 'PDF' else "#{file.width}x#{file.height}"
|
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') %>
|
fileBlock = <%= importHTML('Build/File') %>
|
||||||
|
|
||||||
|
|||||||
@ -156,7 +156,7 @@ class Fetcher
|
|||||||
MD5: data.media.media_hash
|
MD5: data.media.media_hash
|
||||||
size: $.bytesToString data.media.media_size
|
size: $.bytesToString data.media.media_size
|
||||||
sizeInBytes: 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
|
theight: data.media.preview_h
|
||||||
twidth: data.media.preview_w
|
twidth: data.media.preview_w
|
||||||
isSpoiler: data.media.spoiler is '1'
|
isSpoiler: data.media.spoiler is '1'
|
||||||
@ -168,7 +168,7 @@ class Fetcher
|
|||||||
new Thread @threadID, board
|
new Thread @threadID, board
|
||||||
post = new Post Build.post(o), thread, board
|
post = new Post Build.post(o), thread, board
|
||||||
post.kill()
|
post.kill()
|
||||||
post.file.thumbURL = o.file.turl if post.file
|
post.file.thumbURL = o.file.thumbURL if post.file
|
||||||
post.isFetchedQuote = true
|
post.isFetchedQuote = true
|
||||||
Main.callbackNodes Post, [post]
|
Main.callbackNodes Post, [post]
|
||||||
@insert post
|
@insert post
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user