UX: Lower digest suppress period from a year to 6 months (#15023)

This commit is contained in:
Rafael dos Santos Silva 2021-11-22 14:37:32 -03:00 committed by GitHub
parent da9cd4f692
commit c891c44775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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])