mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Use small actions for moving posts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user