aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Choom 2023-02-05 22:43:11 -0300
committerLibravatar Choom 2023-02-05 22:43:11 -0300
commitd2f1139f923c936e1430c530180bef19d8a6609a (patch)
tree2f587669f2c7ec0e6a41448fb9955ed70b7a85b9
parenta11d27b37d6f6ee551bc9bb20e75b101eda53b43 (diff)
downloadweabot-d2f1139f923c936e1430c530180bef19d8a6609a.tar.gz
weabot-d2f1139f923c936e1430c530180bef19d8a6609a.tar.xz
weabot-d2f1139f923c936e1430c530180bef19d8a6609a.zip
Rebuild basural
-rw-r--r--cgi/manage.py5
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)