aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar bai 2019-04-08 02:45:11 -0400
committerLibravatar bai 2019-04-08 02:45:39 -0400
commitc2ecfed16c1d9f6c984c5e9956c0e27ebbd1725b (patch)
tree91d41681d3465ec3d3f35cdb2d3c34fe36410734 /cgi
parent235137b4dcdfa1f930b2c6811a1f394e83d12a24 (diff)
downloadweabot-c2ecfed16c1d9f6c984c5e9956c0e27ebbd1725b.tar.gz
weabot-c2ecfed16c1d9f6c984c5e9956c0e27ebbd1725b.tar.xz
weabot-c2ecfed16c1d9f6c984c5e9956c0e27ebbd1725b.zip
Consistencia en logs
Diffstat (limited to 'cgi')
-rw-r--r--cgi/manage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgi/manage.py b/cgi/manage.py
index 496ae30..e1b2efd 100644
--- a/cgi/manage.py
+++ b/cgi/manage.py
@@ -904,7 +904,7 @@ def manage(self, path_split):
if path_split[4] == 'delete':
board = setBoard(path_split[5])
- post = FetchOne('SELECT `parentid` FROM `posts` WHERE `boardid` = ' + board['id'] + ' AND `id` = \'' + _mysql.escape_string(path_split[6]) + '\' LIMIT 1')
+ post = FetchOne('SELECT id, parentid, message, INET_NTOA(ip) AS ip FROM `posts` WHERE `boardid` = ' + board['id'] + ' AND `id` = \'' + _mysql.escape_string(path_split[6]) + '\' LIMIT 1')
if not post:
message = _('Unable to locate a post with that ID.')
else:
@@ -915,8 +915,8 @@ def manage(self, path_split):
else:
regenerateFrontPages()
- message = _('Post successfully permadeleted.')
- logAction(staff_account['username'], _('Permadeleted post %s') % ('/' + path_split[5] + '/' + path_split[6]))
+ message = "Eliminado post %s permanentemente." % ('/' + board['dir'] + '/' + post['id'])
+ logAction(staff_account['username'], message + ' Contenido: ' + post['message'] + ' IP: ' + post['ip'])
# Delete more than 1 post
if 'deleteall' in self.formdata.keys():