This can execute between thread+post parsing and Thread Watcher callback being run.

This commit is contained in:
ccd0 2017-01-16 09:29:23 -08:00
parent f12fbe24a8
commit 2dce5bedce

View File

@ -340,8 +340,8 @@ ThreadWatcher =
isWatched = ThreadWatcher.isWatched thread
if thread.OP
for post in [thread.OP, thread.OP.clones...]
toggler = $ '.watch-thread-link', post.nodes.info
ThreadWatcher.setToggler toggler, isWatched
if (toggler = $ '.watch-thread-link', post.nodes.info)
ThreadWatcher.setToggler toggler, isWatched
(thread.catalogView.nodes.root.classList.toggle 'watched', isWatched if thread.catalogView)
if Conf['Pin Watched Threads']