diff options
author | Choom | 2023-02-05 22:43:11 -0300 |
---|---|---|
committer | Choom | 2023-02-05 22:43:11 -0300 |
commit | d2f1139f923c936e1430c530180bef19d8a6609a (patch) | |
tree | 2f587669f2c7ec0e6a41448fb9955ed70b7a85b9 /cgi | |
parent | a11d27b37d6f6ee551bc9bb20e75b101eda53b43 (diff) | |
download | weabot-d2f1139f923c936e1430c530180bef19d8a6609a.tar.gz weabot-d2f1139f923c936e1430c530180bef19d8a6609a.tar.xz weabot-d2f1139f923c936e1430c530180bef19d8a6609a.zip |
Rebuild basural
Diffstat (limited to 'cgi')
-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) |