From e9673535fe085a8b82101fb5f0a005e3a16cfa97 Mon Sep 17 00:00:00 2001 From: neptune Date: Mon, 9 Jan 2023 02:26:19 -0300 Subject: Actualizado proyectos --- cgi/manage.py | 4 +++- cgi/templates/home.html | 2 +- 2 files changed, 4 insertions(+), 2 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 diff --git a/cgi/templates/home.html b/cgi/templates/home.html index fe6e872..23de36a 100644 --- a/cgi/templates/home.html +++ b/cgi/templates/home.html @@ -17,7 +17,7 @@ [Mumble] [BaI TV] [Radio] -[Podcast] +[Proyectos] [Xonotic] [Git] -- cgit v1.2.1-18-gbd029