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:
parent
7a2183e8ab
commit
a7c50039de
2 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue