Skip to content

Commit

Permalink
postID should be copied to clones also.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccd0 committed Jul 19, 2019
1 parent 1712026 commit d2c2c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Post.Clone.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit d2c2c01

Please # to comment.