mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
don't send more than 1 reply per day to auto-generated emails
This commit is contained in:
@ -142,7 +142,6 @@ describe Email::MessageBuilder do
|
||||
body: 'hello world',
|
||||
topic_id: 1234,
|
||||
post_id: 4567,
|
||||
mark_as_reply_to_auto_generated: true
|
||||
)
|
||||
end
|
||||
|
||||
@ -154,12 +153,6 @@ describe Email::MessageBuilder do
|
||||
expect(message_with_header_args.header_args['X-Discourse-Topic-Id']).to eq('1234')
|
||||
end
|
||||
|
||||
it "marks the email as replying to an auto generated email" do
|
||||
expect(message_with_header_args.header_args[
|
||||
Email::MessageBuilder::REPLY_TO_AUTO_GENERATED_HEADER_KEY
|
||||
]).to eq(Email::MessageBuilder::REPLY_TO_AUTO_GENERATED_HEADER_VALUE)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context "unsubscribe link" do
|
||||
|
Reference in New Issue
Block a user