mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
new 'private_email_time_window_seconds' site setting
This commit is contained in:
parent
e8969b0c34
commit
2d170712d7
4 changed files with 6 additions and 4 deletions
|
@ -81,7 +81,7 @@ class UserEmailObserver < ActiveRecord::Observer
|
|||
end
|
||||
|
||||
def private_delay
|
||||
20.seconds
|
||||
SiteSetting.private_email_time_window_seconds
|
||||
end
|
||||
|
||||
def post_type
|
||||
|
|
|
@ -1038,6 +1038,7 @@ en:
|
|||
create_thumbnails: "Create thumbnails and lightbox images that are too large to fit in a post."
|
||||
|
||||
email_time_window_mins: "Wait (n) minutes before sending any notification emails, to give users a chance to edit and finalize their posts."
|
||||
private_email_time_window_seconds: "Wait (n) seconds before sending any private notification emails, to give users a chance to edit and finalize their posts."
|
||||
email_posts_context: "How many prior replies to include as context in notification emails."
|
||||
flush_timings_secs: "How frequently we flush timing data to the server, in seconds."
|
||||
title_max_word_length: "The maximum allowed word length, in characters, in a topic title."
|
||||
|
|
|
@ -496,6 +496,7 @@ email:
|
|||
email_time_window_mins:
|
||||
default: 10
|
||||
client: true
|
||||
private_email_time_window_seconds: 20
|
||||
email_posts_context: 5
|
||||
digest_min_excerpt_length: 100
|
||||
digest_topics: 20
|
||||
|
|
|
@ -109,7 +109,7 @@ describe UserEmailObserver do
|
|||
|
||||
context 'user_private_message' do
|
||||
let(:type) { :user_private_message }
|
||||
let(:delay) { 20.seconds }
|
||||
let(:delay) { SiteSetting.private_email_time_window_seconds }
|
||||
let!(:notification) { create_notification(6) }
|
||||
|
||||
include_examples "enqueue_private"
|
||||
|
@ -124,7 +124,7 @@ describe UserEmailObserver do
|
|||
|
||||
context 'user_invited_to_private_message' do
|
||||
let(:type) { :user_invited_to_private_message }
|
||||
let(:delay) { 20.seconds }
|
||||
let(:delay) { SiteSetting.private_email_time_window_seconds }
|
||||
let!(:notification) { create_notification(7) }
|
||||
|
||||
include_examples "enqueue_public"
|
||||
|
@ -132,7 +132,7 @@ describe UserEmailObserver do
|
|||
|
||||
context 'user_invited_to_topic' do
|
||||
let(:type) { :user_invited_to_topic }
|
||||
let(:delay) { 20.seconds }
|
||||
let(:delay) { SiteSetting.private_email_time_window_seconds }
|
||||
let!(:notification) { create_notification(13) }
|
||||
|
||||
include_examples "enqueue_public"
|
||||
|
|
Loading…
Reference in a new issue