From c891c44775787cf9ca112a39575b2a4605105cfe Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Mon, 22 Nov 2021 14:37:32 -0300 Subject: [PATCH] UX: Lower digest suppress period from a year to 6 months (#15023) --- config/site_settings.yml | 2 +- spec/jobs/enqueue_digest_emails_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/site_settings.yml b/config/site_settings.yml index a1bad6eab04..1edf130787a 100644 --- a/config/site_settings.yml +++ b/config/site_settings.yml @@ -1068,7 +1068,7 @@ email: min: 0 max: 20 suppress_digest_email_after_days: - default: 365 + default: 180 max: 36500 digest_suppress_categories: type: category_list diff --git a/spec/jobs/enqueue_digest_emails_spec.rb b/spec/jobs/enqueue_digest_emails_spec.rb index b207d8484e5..2ce3b450b37 100644 --- a/spec/jobs/enqueue_digest_emails_spec.rb +++ b/spec/jobs/enqueue_digest_emails_spec.rb @@ -91,7 +91,7 @@ describe Jobs::EnqueueDigestEmails do end 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 expect(Jobs::EnqueueDigestEmails.new.target_user_ids).to eq([user.id])