Supprimer automatiquement un sujet après X jours

J’ai un travail cron qui désliste automatiquement les sujets fermés dans une catégorie spécifique,

run:
  - exec: echo '* * * * * postgres /usr/bin/psql discourse -c "update topics set visible = FALSE where category_id = 19 and closed = TRUE;"' >> /etc/crontab

dans mon app.yml. On peut combiner cela avec la fermeture automatique (nous l’avons configurée pour fermer automatiquement une fois qu’une solution est sélectionnée).

5 « J'aime »