mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Send an email notification when a post is approved. (#12665)
We now send an email when a queued post is approved, and we create a notification.
This commit is contained in:
@@ -244,5 +244,14 @@ describe NotificationEmailer do
|
||||
|
||||
include_examples "enqueue_public"
|
||||
end
|
||||
|
||||
context 'post_approved' do
|
||||
let(:no_delay) { no_delay }
|
||||
let(:type) { :post_approved }
|
||||
let(:delay) { SiteSetting.email_time_window_mins.minutes }
|
||||
let!(:notification) { create_notification(:post_approved) }
|
||||
|
||||
include_examples "enqueue_public"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user