Make sure thread data is refetched on next update if Thread Watcher updated with stale data.
This commit is contained in:
parent
ca11d70ef6
commit
63fefa2357
@ -264,7 +264,12 @@ ThreadWatcher =
|
||||
|
||||
fetchBoard: (board, deep) ->
|
||||
return unless board.some (thread) -> !thread.data.isDead
|
||||
force = Conf['Show Page'] and board.some((thread) -> !thread.data.page? and !thread.data.isDead and thread.data.last isnt -1)
|
||||
force = false
|
||||
for thread in board
|
||||
{data} = thread
|
||||
if !data.isDead and data.last isnt -1
|
||||
force = true if Conf['Show Page'] and !data.page?
|
||||
force = thread.force = true if !data.modified?
|
||||
{siteID, boardID} = board[0]
|
||||
site = g.sites[siteID]
|
||||
return unless site
|
||||
@ -497,6 +502,8 @@ ThreadWatcher =
|
||||
if newData.isDead or newData.last is -1
|
||||
for key in ['page', 'lastPage', 'unread', 'quotingyou'] when key not of newData
|
||||
newData[key] = undefined
|
||||
if newData.last? and newData.last < data.last
|
||||
newData.modified = undefined
|
||||
n = 0
|
||||
n++ for key, val of newData when data[key] isnt val
|
||||
return unless n
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user