Use small actions for moving posts

This commit is contained in:
Robin Ward
2015-07-31 16:30:18 -04:00
parent cf91bca0cd
commit 76aa0795b3
12 changed files with 88 additions and 89 deletions

View File

@@ -123,11 +123,15 @@ class PostMover
end
def create_moderator_post_in_original_topic
move_type_str = PostMover.move_types[@move_type].to_s
original_topic.add_moderator_post(
user,
I18n.t("move_posts.#{PostMover.move_types[@move_type]}_moderator_post",
I18n.t("move_posts.#{move_type_str}_moderator_post",
count: post_ids.count,
topic_link: "[#{destination_topic.title}](#{destination_topic.url})"),
topic_link: "[#{destination_topic.title}](#{destination_topic.relative_url})"),
post_type: Post.types[:small_action],
action_code: "split_topic",
post_number: @first_post_number_moved
)
end