From d2f1139f923c936e1430c530180bef19d8a6609a Mon Sep 17 00:00:00 2001 From: Choom Date: Sun, 5 Feb 2023 22:43:11 -0300 Subject: Rebuild basural --- cgi/manage.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cgi/manage.py b/cgi/manage.py index 8b262ad..f5ac69b 100644 --- a/cgi/manage.py +++ b/cgi/manage.py @@ -1158,6 +1158,8 @@ def manage(self, path_split): else: regenerateFrontPages() + regenerateTrash() + message = "Post %s eliminado permanentemente de la papelera" % ('/' + board['dir'] + '/' + str(post['id'])) logAction(staff_account['username'], message + ' desde papelera. Contenido: ' + post['message'] + ' IP: ' + post['ip']) @@ -1185,6 +1187,9 @@ def manage(self, path_split): deleted += 1 # Delete post end + if deleted > 0: + regenerateTrash() + logAction(staff_account['username'], _('Permadeleted %s post(s).') % str(deleted)) message = _('Permadeleted %s post(s).') % str(deleted) -- cgit v1.2.1-18-gbd029