From 1e24021c0709724a6d0e5e21acdae19edd9be902 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sat, 11 Jan 2014 11:37:11 -0700 Subject: [PATCH] I think this was what I had meant to put there. It checks unread count already anyways, and the previous behavior was causing QuoteThreading.force() to run twice, and may have caused an issue where backlinks were doubling-up? I don't know, I'm still looking into that issue because it's happening on the Index as well. --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/General/Navigate.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index c93aebf31..8da2e80c7 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -12207,7 +12207,7 @@ $.rmAll(board); $.add(board, Navigate.threadRoot); if (Conf['Unread Count']) { - Navigate.ready('Unread Count', Unread.ready, Conf['Unread Count']); + Navigate.ready('Unread Count', Unread.ready, !Conf['Quote Threading']); Unread.read(); return Unread.update(); } diff --git a/builds/crx/script.js b/builds/crx/script.js index 85c885e96..4c57c4a22 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -12196,7 +12196,7 @@ $.rmAll(board); $.add(board, Navigate.threadRoot); if (Conf['Unread Count']) { - Navigate.ready('Unread Count', Unread.ready, Conf['Unread Count']); + Navigate.ready('Unread Count', Unread.ready, !Conf['Quote Threading']); Unread.read(); return Unread.update(); } diff --git a/src/General/Navigate.coffee b/src/General/Navigate.coffee index e92e55255..abb9a3ec6 100644 --- a/src/General/Navigate.coffee +++ b/src/General/Navigate.coffee @@ -294,7 +294,7 @@ Navigate = $.add board, Navigate.threadRoot if Conf['Unread Count'] - Navigate.ready 'Unread Count', Unread.ready, Conf['Unread Count'] + Navigate.ready 'Unread Count', Unread.ready, not Conf['Quote Threading'] Unread.read() Unread.update()