From af6e9bd6ef5723929e6fc2c9bcbd33afebc2f841 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 24 Jan 2015 20:45:34 -0800 Subject: [PATCH] Get.threadFromNode selects the wrong thread for inlined quotes. --- builds/appchan-x.user.js | 3 ++- builds/crx/script.js | 3 ++- src/Monitoring/ThreadWatcher.coffee | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 3ff84f973..b18b5b48e 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -14460,7 +14460,8 @@ return $.event('CloseMenu'); }, toggle: function() { - ThreadWatcher.toggle(Get.threadFromNode(this)); + var thread; + thread = Get.postFromNode(this).thread; Index.followedThreadID = thread.ID; ThreadWatcher.toggle(thread); return delete Index.followedThreadID; diff --git a/builds/crx/script.js b/builds/crx/script.js index 904d942b2..74765820c 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -14483,7 +14483,8 @@ return $.event('CloseMenu'); }, toggle: function() { - ThreadWatcher.toggle(Get.threadFromNode(this)); + var thread; + thread = Get.postFromNode(this).thread; Index.followedThreadID = thread.ID; ThreadWatcher.toggle(thread); return delete Index.followedThreadID; diff --git a/src/Monitoring/ThreadWatcher.coffee b/src/Monitoring/ThreadWatcher.coffee index ffca89f21..57f4f75f6 100755 --- a/src/Monitoring/ThreadWatcher.coffee +++ b/src/Monitoring/ThreadWatcher.coffee @@ -108,7 +108,7 @@ ThreadWatcher = ThreadWatcher.refresh() $.event 'CloseMenu' toggle: -> - ThreadWatcher.toggle Get.threadFromNode @ + {thread} = Get.postFromNode @ Index.followedThreadID = thread.ID ThreadWatcher.toggle thread delete Index.followedThreadID