Thread Watcher will now be highlighted on any unread reply to a thread in which you are OP. #913
This commit is contained in:
parent
a625d12979
commit
b9dea6f931
@ -239,6 +239,7 @@ ThreadWatcher =
|
|||||||
defaultValue: 0
|
defaultValue: 0
|
||||||
|
|
||||||
unread = quotingYou = 0
|
unread = quotingYou = 0
|
||||||
|
youOP = !!QuoteYou.db?.get {boardID, threadID, postID: threadID}
|
||||||
|
|
||||||
for postObj in @response.posts
|
for postObj in @response.posts
|
||||||
continue unless postObj.no > lastReadPost
|
continue unless postObj.no > lastReadPost
|
||||||
@ -246,7 +247,11 @@ ThreadWatcher =
|
|||||||
|
|
||||||
unread++
|
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
|
quotesYou = false
|
||||||
regexp = /<a [^>]*\bhref="(?:\/([^\/]+)\/thread\/)?(\d+)?(?:#p(\d+))?"/g
|
regexp = /<a [^>]*\bhref="(?:\/([^\/]+)\/thread\/)?(\d+)?(?:#p(\d+))?"/g
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user