mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "FIX: new task to delete old drafts weekly"
This reverts commit fcaed7a00d
.
This commit is contained in:
parent
40882a9576
commit
c987a1d571
@ -1,12 +0,0 @@
|
|||||||
module Jobs
|
|
||||||
class CleanUpDrafts < Jobs::Scheduled
|
|
||||||
every 1.week
|
|
||||||
|
|
||||||
def execute(args)
|
|
||||||
delete_drafts_older_than_n_days = SiteSetting.delete_drafts_older_than_n_days.days.ago
|
|
||||||
|
|
||||||
# remove old drafts
|
|
||||||
Draft.where("updated_at < ?", delete_drafts_older_than_n_days).destroy_all
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
@ -1139,8 +1139,6 @@ en:
|
|||||||
enable_cdn_js_debugging: "Allow /logs to display proper errors by adding crossorigin permissions on all js includes."
|
enable_cdn_js_debugging: "Allow /logs to display proper errors by adding crossorigin permissions on all js includes."
|
||||||
show_create_topics_notice: "If the site has fewer than 5 public topics, show a notice asking admins to create some topics."
|
show_create_topics_notice: "If the site has fewer than 5 public topics, show a notice asking admins to create some topics."
|
||||||
|
|
||||||
delete_drafts_older_than_n_days: Delete drafts older than (n) days.
|
|
||||||
|
|
||||||
vacuum_db_days: "Run VACUUM FULL ANALYZE to reclaim DB space after migrations (set to 0 to disable)"
|
vacuum_db_days: "Run VACUUM FULL ANALYZE to reclaim DB space after migrations (set to 0 to disable)"
|
||||||
|
|
||||||
prevent_anons_from_downloading_files: "Prevent anonymous users from downloading attachments. WARNING: this will prevent any non-image site assets posted as attachments from working."
|
prevent_anons_from_downloading_files: "Prevent anonymous users from downloading attachments. WARNING: this will prevent any non-image site assets posted as attachments from working."
|
||||||
|
@ -893,8 +893,6 @@ uncategorized:
|
|||||||
default: 0
|
default: 0
|
||||||
hidden: true
|
hidden: true
|
||||||
|
|
||||||
delete_drafts_older_than_n_days: 90
|
|
||||||
|
|
||||||
tos_topic_id:
|
tos_topic_id:
|
||||||
default: -1
|
default: -1
|
||||||
hidden: true
|
hidden: true
|
||||||
|
Loading…
Reference in New Issue
Block a user