From 42c3c96359cd9353a9407932cc000b0f5d47dc39 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 2 May 2015 18:29:25 -0700 Subject: [PATCH] Fix loading archived /f/ posts from before tag was recorded. --- src/General/html/Build/File.html | 2 +- src/General/lib/fetcher.class | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/General/html/Build/File.html b/src/General/html/Build/File.html index 88cf2f86c..d48f11db2 100644 --- a/src/General/html/Build/File.html +++ b/src/General/html/Build/File.html @@ -4,7 +4,7 @@
File: ${file.name} - -(${file.size}, ${file.dimensions}, ${file.tag}) + -(${file.size}, ${file.dimensions}?{file.tag}{, ${file.tag}})
}{
diff --git a/src/General/lib/fetcher.class b/src/General/lib/fetcher.class index 890bfaf28..5a143799d 100644 --- a/src/General/lib/fetcher.class +++ b/src/General/lib/fetcher.class @@ -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