mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 00:35:32 +08:00
FIX: When moving a topic, skip validations in case user is TL4
This commit is contained in:
parent
c63b0162e0
commit
aa16f043ea
@ -83,7 +83,8 @@ class PostMover
|
|||||||
post.user,
|
post.user,
|
||||||
raw: post.raw,
|
raw: post.raw,
|
||||||
topic_id: destination_topic.id,
|
topic_id: destination_topic.id,
|
||||||
acting_user: user
|
acting_user: user,
|
||||||
|
skip_validations: true
|
||||||
)
|
)
|
||||||
p.update_column(:reply_count, @reply_count[1] || 0)
|
p.update_column(:reply_count, @reply_count[1] || 0)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user