From acbf82d8db750d97696c8c5bf98c8de6c3faf278 Mon Sep 17 00:00:00 2001 From: Kane York Date: Tue, 21 Jul 2015 15:48:39 -0700 Subject: [PATCH] FIX: Change post owner of deleted post, take 3 --- app/services/post_owner_changer.rb | 1 - spec/controllers/topics_controller_spec.rb | 1 - 2 files changed, 2 deletions(-) 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