Change deletedPosts/deletedFiles to fullID.

This commit is contained in:
ccd0 2015-03-09 01:32:15 -07:00
parent b629b3dca1
commit 668f2ed80e

View File

@ -301,14 +301,14 @@ ThreadUpdater =
deletedPosts = [] deletedPosts = []
for ID in ThreadUpdater.postIDs when ID not in index for ID in ThreadUpdater.postIDs when ID not in index
thread.posts[ID].kill() thread.posts[ID].kill()
deletedPosts.push ID deletedPosts.push "#{board}.#{ID}"
ThreadUpdater.postIDs = index ThreadUpdater.postIDs = index
# Check for deleted files. # Check for deleted files.
deletedFiles = [] deletedFiles = []
for ID in ThreadUpdater.fileIDs when not (ID in files or ID in deletedPosts) for ID in ThreadUpdater.fileIDs when not (ID in files or "#{board}.#{ID}" in deletedPosts)
thread.posts[ID].kill true thread.posts[ID].kill true
deletedFiles.push ID deletedFiles.push "#{board}.#{ID}"
ThreadUpdater.fileIDs = files ThreadUpdater.fileIDs = files
unless count unless count