]> cat aescling's git repositories - mastodon.git/commitdiff
Add option to automatically delete toots after one week (#17691)
authorClaire <claire.github-309c@sitedethib.com>
Thu, 3 Mar 2022 15:18:58 +0000 (16:18 +0100)
committerGitHub <noreply@github.com>
Thu, 3 Mar 2022 15:18:58 +0000 (16:18 +0100)
Fixes #17658

app/models/account_statuses_cleanup_policy.rb
config/locales/en.yml

index 0f78c1a546736f1e52d85b57d99eb92d8825e46e..365123653141294d8d990fcbcd1cf2b33710f427 100644 (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,
index 98a07aa6a6044f98adf516257e2ac8ab0ed92d4b..2367d5ded411cfa7472e96254cb56f071927d9b4 100644 (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