Remove like on change of ownership. (#5038)

This commit is contained in:
Bianca Nenciu
2017-08-11 09:55:00 +02:00
committed by Régis Hanol
parent f2539a86d0
commit 117417848e
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -22,6 +22,7 @@ class PostOwnerChanger
end
post.topic = @topic
post.set_owner(@new_owner, @acting_user, @skip_revision)
PostAction.remove_act(@new_owner, post, PostActionType.types[:like])
end
@topic.update_statistics