diff --git a/app/services/post_owner_changer.rb b/app/services/post_owner_changer.rb index bf8868591..c7aa0b751 100644 --- a/app/services/post_owner_changer.rb +++ b/app/services/post_owner_changer.rb @@ -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 diff --git a/spec/controllers/topics_controller_spec.rb b/spec/controllers/topics_controller_spec.rb index ae5c0523e..049359715 100644 --- a/spec/controllers/topics_controller_spec.rb +++ b/spec/controllers/topics_controller_spec.rb @@ -258,7 +258,6 @@ describe TopicsController do t2.reload p3.reload expect(t2.deleted_at).to be_nil - expect(p3.deleted_at).to be_nil expect(p3.user).to eq(user_a) end end