fix missing .fullID, add ID field to object sent
This commit is contained in:
parent
3c71e2f726
commit
f5cafab599
@ -269,12 +269,12 @@ ThreadUpdater =
|
|||||||
|
|
||||||
unless ID in index
|
unless ID in index
|
||||||
post.kill()
|
post.kill()
|
||||||
deletedPosts.push {fullID: post.fullID}
|
deletedPosts.push {ID: post.ID, fullID: post.fullID}
|
||||||
else if post.isDead
|
else if post.isDead
|
||||||
post.resurrect()
|
post.resurrect()
|
||||||
else if post.file and not (post.file.isDead or ID in files)
|
else if post.file and not (post.file.isDead or ID in files)
|
||||||
post.kill true
|
post.kill true
|
||||||
deletedFiles.push {fullID: post.fullID}
|
deletedFiles.push {ID: post.ID, fullID: post.fullID}
|
||||||
|
|
||||||
# Fetching your own posts after posting
|
# Fetching your own posts after posting
|
||||||
if ThreadUpdater.postID and ThreadUpdater.postID is ID
|
if ThreadUpdater.postID and ThreadUpdater.postID is ID
|
||||||
@ -319,8 +319,8 @@ ThreadUpdater =
|
|||||||
|
|
||||||
$.event 'ThreadUpdate',
|
$.event 'ThreadUpdate',
|
||||||
404: false
|
404: false
|
||||||
thread: {fullID: ThreadUpdater.thread}
|
thread: {ID: ThreadUpdater.thread.ID, fullID: ThreadUpdater.thread.fullID}
|
||||||
newPosts: {fullID: post.fullID} for post in posts
|
newPosts: {ID: post.ID, fullID: post.fullID} for post in posts
|
||||||
deletedPosts: deletedPosts
|
deletedPosts: deletedPosts
|
||||||
deletedFiles: deletedFiles
|
deletedFiles: deletedFiles
|
||||||
postCount: OP.replies + 1
|
postCount: OP.replies + 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user