aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar neptune 2022-12-17 14:48:28 -0300
committerLibravatar neptune 2022-12-17 14:48:28 -0300
commitd99f02427cabae690b10dc13faaf018cac0f9b30 (patch)
tree43988877e040b34aab3fc0be68dfdd4ddacb3eff
parent96b833cbc8f7b792ae6c5ff2714f0cd168b63beb (diff)
downloadweabot-d99f02427cabae690b10dc13faaf018cac0f9b30.tar.gz
weabot-d99f02427cabae690b10dc13faaf018cac0f9b30.tar.xz
weabot-d99f02427cabae690b10dc13faaf018cac0f9b30.zip
Actualizando basural cuando sea necesario
-rw-r--r--cgi/manage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgi/manage.py b/cgi/manage.py
index 2fef8ca..b98ae06 100644
--- a/cgi/manage.py
+++ b/cgi/manage.py
@@ -347,6 +347,7 @@ def manage(self, path_split):
if not permanently:
deletePost(path_split[4], None, 2, imageonly)
+ regenerateTrash()
else:
deletePost(path_split[4], None, 0, imageonly)
regenerateHome()
@@ -1008,6 +1009,7 @@ def manage(self, path_split):
else:
regenerateFrontPages()
+ regenerateTrash()
message = _('Post successfully restored.')
logAction(staff_account['username'], _('Restored post %s') % (
'/' + path_split[5] + '/' + path_split[6]))