You can now 'move' the first post of a topic to another topic as a merge. In that

case, the first post is cloned instead of being deleted from the original topic.
This commit is contained in:
Robin Ward
2013-05-13 14:06:16 -04:00
parent d3f19817aa
commit be234ce9b9
4 changed files with 58 additions and 15 deletions

View File

@ -11,6 +11,9 @@ class PostCreator
# raw - raw text of post
# image_sizes - We can pass a list of the sizes of images in the post as a shortcut.
# invalidate_oneboxes - Whether to force invalidation of oneboxes in this post
# acting_user - The user performing the action might be different than the user
# who is the post "author." For example when copying posts to a new
# topic.
#
# When replying to a topic:
# topic_id - topic we're replying to
@ -89,6 +92,7 @@ class PostCreator
post.post_type = @opts[:post_type] if @opts[:post_type].present?
post.no_bump = @opts[:no_bump] if @opts[:no_bump].present?
post.extract_quoted_post_numbers
post.acting_user = @opts[:acting_user] if @opts[:acting_user].present?
post.image_sizes = @opts[:image_sizes] if @opts[:image_sizes].present?
post.invalidate_oneboxes = @opts[:invalidate_oneboxes] if @opts[:invalidate_oneboxes].present?