mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #3623 from riking/patch-6
FIX: Change post owner of deleted post, take 3
This commit is contained in:
@@ -16,7 +16,6 @@ class PostOwnerChanger
|
||||
@topic.user = @new_owner if post.is_first_post?
|
||||
|
||||
if post.user == nil
|
||||
post.recover!
|
||||
@topic.recover! if post.is_first_post?
|
||||
end
|
||||
post.topic = @topic
|
||||
|
||||
Reference in New Issue
Block a user