diff options
-rw-r--r-- | cgi/manage.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |