Fix most likely cause of thread watcher data corruption. #341
This was feeding bad results to ThreadWatcher.set404 when the g.THREADID was falsy.
This commit is contained in:
parent
6312cfaf20
commit
726e3d4e01
@ -50,8 +50,8 @@ class DataBoard
|
|||||||
|
|
||||||
get: ({boardID, threadID, postID, defaultValue}) ->
|
get: ({boardID, threadID, postID, defaultValue}) ->
|
||||||
if board = @data.boards[boardID]
|
if board = @data.boards[boardID]
|
||||||
unless threadID
|
unless threadID?
|
||||||
if postID
|
if postID?
|
||||||
for ID, thread in board
|
for ID, thread in board
|
||||||
if postID of thread
|
if postID of thread
|
||||||
val = thread[postID]
|
val = thread[postID]
|
||||||
@ -59,7 +59,7 @@ class DataBoard
|
|||||||
else
|
else
|
||||||
val = board
|
val = board
|
||||||
else if thread = board[threadID]
|
else if thread = board[threadID]
|
||||||
val = if postID
|
val = if postID?
|
||||||
thread[postID]
|
thread[postID]
|
||||||
else
|
else
|
||||||
thread
|
thread
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user