mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 06:15:42 +08:00
FIX: skip validation when replying via email for staged users
This commit is contained in:
parent
84ab7fdcc7
commit
e09e807027
@ -74,7 +74,11 @@ module Email
|
||||
message = SubscriptionMailer.send(action, user)
|
||||
Email::Sender.new(message, :subscription).send
|
||||
elsif post = find_related_post
|
||||
create_reply(user: user, raw: body, post: post, topic: post.topic)
|
||||
create_reply(user: user,
|
||||
raw: body,
|
||||
post: post,
|
||||
topic: post.topic,
|
||||
skip_validations: user.staged?)
|
||||
else
|
||||
destination = destinations.first
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user