mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: Posts in a deleted topic couldn't be moved.
https://meta.discourse.org/t/moving-posts-to-new-topic/58436/4
This commit is contained in:
@ -497,7 +497,7 @@ class TopicsController < ApplicationController
|
||||
params.require(:topic_id)
|
||||
params.permit(:category_id)
|
||||
|
||||
topic = Topic.find_by(id: params[:topic_id])
|
||||
topic = Topic.with_deleted.find_by(id: params[:topic_id])
|
||||
guardian.ensure_can_move_posts!(topic)
|
||||
|
||||
dest_topic = move_posts_to_destination(topic)
|
||||
|
Reference in New Issue
Block a user