Browse Source

Add option to automatically delete toots after one week (#17691)

Fixes #17658
closed-social-glitch-2
Claire 2 years ago
committed by GitHub
parent
commit
02dbc59c91
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      app/models/account_statuses_cleanup_policy.rb
  2. +1
    -0
      config/locales/en.yml

+ 1
- 0
app/models/account_statuses_cleanup_policy.rb View File

@ -23,6 +23,7 @@ class AccountStatusesCleanupPolicy < ApplicationRecord
include Redisable
ALLOWED_MIN_STATUS_AGE = [
1.week.seconds,
2.weeks.seconds,
1.month.seconds,
2.months.seconds,

+ 1
- 0
config/locales/en.yml View File

@ -1487,6 +1487,7 @@ en:
'2629746': 1 month
'31556952': 1 year
'5259492': 2 months
'604800': 1 week
'63113904': 2 years
'7889238': 3 months
min_age_label: Age threshold

Loading…
Cancel
Save