postID should be copied to clones also.

This commit is contained in:
ccd0 2019-07-18 22:58:50 -07:00
parent 171202665e
commit d2c2c017f1

View File

@ -2,7 +2,7 @@ Post.Clone = class extends Post
isClone: true
constructor: (@origin, @context, contractThumb) ->
for key in ['ID', 'threadID', 'boardID', 'siteID', 'fullID', 'board', 'thread', 'info', 'quotes', 'isReply']
for key in ['ID', 'postID', 'threadID', 'boardID', 'siteID', 'fullID', 'board', 'thread', 'info', 'quotes', 'isReply']
# Copy or point to the origin's key value.
@[key] = @origin[key]