Thread Watcher will now be highlighted on any unread reply to a thread in which you are OP. #913

This commit is contained in:
ccd0 2017-01-28 07:34:22 -08:00
parent a625d12979
commit b9dea6f931

View File

@ -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 = /<a [^>]*\bhref="(?:\/([^\/]+)\/thread\/)?(\d+)?(?:#p(\d+))?"/g