diff --git a/srv/index.php b/srv/index.php index 58e63ec..7310755 100644 --- a/srv/index.php +++ b/srv/index.php @@ -458,7 +458,7 @@ switch($mode) { show_post_history($db, $sub, $post_id, $settings); } else { make_edit($db, $sub, $_POST['post_id'], $visitor_ip, $settings); - answer_redirect($sub, $css); + answer_redirect($sub, $css, '', $settings); } $msg = $sub . '/' . $post_id; @@ -634,8 +634,8 @@ switch($mode) { $post_message = "post attempt"; log_event($db, $settings, 'user', $post_message, $visitor_ip); - make_post($db, $sub, $settings, $text, $org_id); - answer_redirect($sub, $css); + $post_id = make_post($db, $sub, $settings, $text, $org_id); + answer_redirect($sub, $css, $post_id, $settings); quit($db, "");