From b9dea6f93165f8d3f277177cf222111373d89e20 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 28 Jan 2017 07:34:22 -0800 Subject: [PATCH] Thread Watcher will now be highlighted on any unread reply to a thread in which you are OP. #913 --- src/Monitoring/ThreadWatcher.coffee | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Monitoring/ThreadWatcher.coffee b/src/Monitoring/ThreadWatcher.coffee index c031a35d2..cd0a38f9f 100644 --- a/src/Monitoring/ThreadWatcher.coffee +++ b/src/Monitoring/ThreadWatcher.coffee @@ -239,6 +239,7 @@ ThreadWatcher = defaultValue: 0 unread = quotingYou = 0 + youOP = !!QuoteYou.db?.get {boardID, threadID, postID: threadID} for postObj in @response.posts continue unless postObj.no > lastReadPost @@ -246,7 +247,11 @@ ThreadWatcher = unread++ - continue unless QuoteYou.db and postObj.com + if !quotingYou and youOP and not Filter.isHidden(Build.parseJSON postObj, boardID) + quotingYou = 1 + continue + + continue unless !quotingYou and QuoteYou.db and postObj.com quotesYou = false regexp = /]*\bhref="(?:\/([^\/]+)\/thread\/)?(\d+)?(?:#p(\d+))?"/g