aboutsummaryrefslogtreecommitdiff
path: root/cgi/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/api.py')
-rw-r--r--cgi/api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cgi/api.py b/cgi/api.py
index 40fb5c6..462c2c2 100644
--- a/cgi/api.py
+++ b/cgi/api.py
@@ -367,10 +367,11 @@ def api_process(self, path_split):
mobile = ("mobile" in formdata.keys())
# call post function
- (post_url, ttaken) = self.make_post(ip, boarddir, parent, trap1, trap2, name, email, subject, message, file, file_original, spoil, oek_file, password, noimage, mobile)
+ (post_url, ttaken, postid) = self.make_post(ip, boarddir, parent, trap1, trap2, name, email, subject, message, file, file_original, spoil, oek_file, password, noimage, mobile)
values['post_url'] = post_url
values['time_taken'] = ttaken
+ values['post_id'] = postid
elif method == 'newThreads':
data_limit = formdata.get('limit')
limit = 30