From 950f004ec998c5b6654627ad2f15ff97521ab75b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 6 Feb 2017 00:24:16 -0800 Subject: [PATCH] Add `Require OP Quote Link` option (off by default) to Thread Watcher menu: For purposes of thread watcher highlighting, only consider posts with a quote link to the OP as replies to the OP. --- src/Monitoring/ThreadWatcher.coffee | 2 +- src/Monitoring/Unread.coffee | 2 +- src/config/Config.coffee | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Monitoring/ThreadWatcher.coffee b/src/Monitoring/ThreadWatcher.coffee index 0a4dab033..970921c60 100644 --- a/src/Monitoring/ThreadWatcher.coffee +++ b/src/Monitoring/ThreadWatcher.coffee @@ -248,7 +248,7 @@ ThreadWatcher = unread++ - if !quotingYou and youOP and not Filter.isHidden(Build.parseJSON postObj, boardID) + if !quotingYou and !Conf['Require OP Quote Link'] and youOP and not Filter.isHidden(Build.parseJSON postObj, boardID) quotingYou = true continue diff --git a/src/Monitoring/Unread.coffee b/src/Monitoring/Unread.coffee index 52d9ca4ea..3b8040796 100644 --- a/src/Monitoring/Unread.coffee +++ b/src/Monitoring/Unread.coffee @@ -238,4 +238,4 @@ Unread = ThreadWatcher.update Unread.thread.board.ID, Unread.thread.ID, isDead: Unread.thread.isDead unread: Unread.posts.size - quotingYou: !!(if QuoteYou.isYou(Unread.thread.OP) then Unread.posts.size else Unread.postsQuotingYou.size) + quotingYou: !!(if !Conf['Require OP Quote Link'] and QuoteYou.isYou(Unread.thread.OP) then Unread.posts.size else Unread.postsQuotingYou.size) diff --git a/src/config/Config.coffee b/src/config/Config.coffee index 2bc61816d..518e938a4 100644 --- a/src/config/Config.coffee +++ b/src/config/Config.coffee @@ -661,6 +661,10 @@ Config = true 'Show number of unread posts in watched threads.' ] + 'Require OP Quote Link': [ + false + 'For purposes of thread watcher highlighting, only consider posts with a quote link to the OP as replies to the OP.' + ] filter: postID: """