Fix loading archived /f/ posts from before tag was recorded.

This commit is contained in:
ccd0 2015-05-02 18:29:25 -07:00
parent 76b9074ad6
commit 42c3c96359
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<div class="fileInfo"><span class="fileText" id="fT${postID}">
File:
<a data-width="${file.width}" data-height="${file.height}" href="${fileURL}" target="_blank">${file.name}</a>
-(${file.size}, ${file.dimensions}, ${file.tag})
-(${file.size}, ${file.dimensions}?{file.tag}{, ${file.tag}})
</span></div>
}{
<div class="fileText" id="fT${postID}"?{file.isSpoiler}{ title="${file.name}"}>

View File

@ -160,7 +160,7 @@ class Fetcher
twidth: data.media.preview_w
isSpoiler: data.media.spoiler is '1'
o.file.dimensions = "#{o.file.width}x#{o.file.height}" unless /\.pdf$/.test o.file.url
o.file.tag = JSON.parse(data.media.exif).Tag if @boardID is 'f'
o.file.tag = JSON.parse(data.media.exif).Tag if @boardID is 'f' and data.media.exif
board = g.boards[@boardID] or
new Board @boardID