mirror of
https://github.com/discourse/discourse.git
synced 2025-04-08 05:40:43 +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)
|
message = SubscriptionMailer.send(action, user)
|
||||||
Email::Sender.new(message, :subscription).send
|
Email::Sender.new(message, :subscription).send
|
||||||
elsif post = find_related_post
|
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
|
else
|
||||||
destination = destinations.first
|
destination = destinations.first
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user