This can execute between thread+post parsing and Thread Watcher callback being run.
This commit is contained in:
parent
f12fbe24a8
commit
2dce5bedce
@ -340,8 +340,8 @@ ThreadWatcher =
|
|||||||
isWatched = ThreadWatcher.isWatched thread
|
isWatched = ThreadWatcher.isWatched thread
|
||||||
if thread.OP
|
if thread.OP
|
||||||
for post in [thread.OP, thread.OP.clones...]
|
for post in [thread.OP, thread.OP.clones...]
|
||||||
toggler = $ '.watch-thread-link', post.nodes.info
|
if (toggler = $ '.watch-thread-link', post.nodes.info)
|
||||||
ThreadWatcher.setToggler toggler, isWatched
|
ThreadWatcher.setToggler toggler, isWatched
|
||||||
(thread.catalogView.nodes.root.classList.toggle 'watched', isWatched if thread.catalogView)
|
(thread.catalogView.nodes.root.classList.toggle 'watched', isWatched if thread.catalogView)
|
||||||
|
|
||||||
if Conf['Pin Watched Threads']
|
if Conf['Pin Watched Threads']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user