mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05:00
Remove like on change of ownership. (#5038)
This commit is contained in:
committed by
Régis Hanol
parent
f2539a86d0
commit
117417848e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user