diff options
Diffstat (limited to 'cgi/manage.py')
-rw-r--r-- | cgi/manage.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cgi/manage.py b/cgi/manage.py index cd00a07..690c807 100644 --- a/cgi/manage.py +++ b/cgi/manage.py @@ -349,6 +349,7 @@ def manage(self, path_split): deletePost(path_split[4], None, 2, imageonly) regenerateTrash() else: + return deletePost(path_split[4], None, 0, imageonly) regenerateHome() @@ -1124,6 +1125,7 @@ def manage(self, path_split): logAction(staff_account['username'], _('Restored post %s') % ('/' + path_split[5] + '/' + path_split[6]) ) if path_split[4] == 'delete': + return board = setBoard(path_split[5]) post = FetchOne('SELECT id, parentid, message, INET6_NTOA(ip) AS ip FROM `posts` WHERE `boardid` = %s AND `id` = %s LIMIT 1', (board['id'], path_split[6])) @@ -1137,7 +1139,7 @@ def manage(self, path_split): else: regenerateFrontPages() - message = "Post %s eliminado permanentemente" % ('/' + board['dir'] + '/' + str(post['id'])) + 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']) # Delete more than 1 post |