From a43de316c8fe6168e0f46c075d07ead806049540 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 30 Oct 2016 22:59:53 -0700 Subject: [PATCH] Simplify Get.postFromNode. The extra stuff was added in ee291bad0ce37f990416f596b75d40812c84e32f to make thread stub menus work and is no longer needed. --- src/General/Get.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/Get.coffee b/src/General/Get.coffee index 16ac5d06e..b2c92fc77 100644 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -18,7 +18,7 @@ Get = index = root.dataset.clone if index then post.clones[index] else post postFromNode: (root) -> - Get.postFromRoot $.x '(ancestor::div[contains(@class,"postContainer")][1]|following::div[contains(@class,"postContainer")][1])', root + Get.postFromRoot $.x 'ancestor::div[contains(@class,"postContainer")][1]', root postDataFromLink: (link) -> if link.hostname is 'boards.4chan.org' path = link.pathname.split /\/+/