2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

FIX: Allow changing post owner even when topic validations fail

This commit is contained in:
Gerhard Schlager 2018-03-01 17:31:58 +01:00
parent 7a2183e8ab
commit a7c50039de
2 changed files with 8 additions and 3 deletions

View file

@ -31,7 +31,7 @@ class PostOwnerChanger
first_post_created_at: @new_owner.reload.posts.order('created_at ASC').first&.created_at
)
@topic.save!
@topic.save!(validate: false)
end
end
end