diff --git a/src/site/SW.tinyboard.coffee b/src/site/SW.tinyboard.coffee index 98f828e52..72ea7af5a 100644 --- a/src/site/SW.tinyboard.coffee +++ b/src/site/SW.tinyboard.coffee @@ -104,7 +104,7 @@ SW.tinyboard = parseFile: (post, file) -> {text, link, thumb} = file 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 (infoNode = link.nextElementSibling) return false if not (info = infoNode.textContent.match /\((Spoiler Image, )?([\d.]+ [KMG]?B).*\)/) nameNode = $ '.postfilename', text $.extend file,