From cffa4df7121827d4ea90de43e14b7f35ea591f78 Mon Sep 17 00:00:00 2001 From: name Date: Mon, 11 Dec 2017 18:15:25 -0800 Subject: [PATCH] Parse file when descendant of div.files > div.file --- src/site/SW.tinyboard.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site/SW.tinyboard.coffee b/src/site/SW.tinyboard.coffee index cc86723f5..ae771c79d 100644 --- a/src/site/SW.tinyboard.coffee +++ b/src/site/SW.tinyboard.coffee @@ -102,7 +102,7 @@ SW.tinyboard = parseFile: (post, file) -> {text, link, thumb} = file - return false if text.parentNode isnt post.nodes.root # file belongs to a reply + return false if $.x("ancestor::#{Site.xpath.postContainer}", text) isnt post.nodes.root # file belongs to a reply return false if not (infoNode = $ '.unimportant', text) return false if not (info = infoNode.textContent.match /\((Spoiler Image, )?([\d.]+ [KMG]?B).*\)/) nameNode = $ '.postfilename', text