aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgi/modapi.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/cgi/modapi.py b/cgi/modapi.py
index abefdc9..65c7320 100644
--- a/cgi/modapi.py
+++ b/cgi/modapi.py
@@ -82,10 +82,15 @@ def api_process(self, path_split):
_mysql.escape_string(id) + "'")
values['post'] = post
if 'parentid' in formdata.keys():
- id = formdata.get('id')
+ id = formdata.get('parentid')
post = FetchAll("SELECT * FROM `posts` WHERE `parentid` = '" +
_mysql.escape_string(id) + "'")
values['posts'] = post
+ if 'test' in formdata.keys():
+ id = formdata.get('test')
+ post = FetchAll("SELECT `id`, `boardid`, `parentid`,`timestamp`, `name`, `tripcode`, `email` ,`subject`,`message`,`file`,`thumb`, IPV6_NTOA(`ip`) as ip,`IS_DELETED` AS `deleted`, `bumped`, `last`, `locked` FROM `posts` WHERE `parentid` = '" +
+ _mysql.escape_string(id) + "'")
+ values['posts'] = post
elif method == 'reports': # /cgi/manage/reports/ignore
if len(path_split) > 3:
if path_split[3] == 'ignore':