UX: Lower digest suppress period from a year to 6 months (#15023)
This commit is contained in:
parent
da9cd4f692
commit
c891c44775
|
@ -1068,7 +1068,7 @@ email:
|
||||||
min: 0
|
min: 0
|
||||||
max: 20
|
max: 20
|
||||||
suppress_digest_email_after_days:
|
suppress_digest_email_after_days:
|
||||||
default: 365
|
default: 180
|
||||||
max: 36500
|
max: 36500
|
||||||
digest_suppress_categories:
|
digest_suppress_categories:
|
||||||
type: category_list
|
type: category_list
|
||||||
|
|
|
@ -91,7 +91,7 @@ describe Jobs::EnqueueDigestEmails do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'regular users' do
|
context 'regular users' do
|
||||||
let!(:user) { Fabricate(:active_user, last_seen_at: 360.days.ago) }
|
let!(:user) { Fabricate(:active_user, last_seen_at: (SiteSetting.suppress_digest_email_after_days - 1).days.ago) }
|
||||||
|
|
||||||
it "returns the user" do
|
it "returns the user" do
|
||||||
expect(Jobs::EnqueueDigestEmails.new.target_user_ids).to eq([user.id])
|
expect(Jobs::EnqueueDigestEmails.new.target_user_ids).to eq([user.id])
|
||||||
|
|
Loading…
Reference in New Issue