mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Ensure that we only move posts that belong to the original topic.
This commit is contained in:
@@ -157,7 +157,7 @@ class PostMover
|
||||
|
||||
def posts
|
||||
@posts ||= begin
|
||||
Post.where(id: post_ids).order(:created_at).tap do |posts|
|
||||
Post.where(topic: @original_topic, id: post_ids).order(:created_at).tap do |posts|
|
||||
raise Discourse::InvalidParameters.new(:post_ids) if posts.empty?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user