updated answer_redirect with post_id
parent
8612efc339
commit
0e7fd914e7
|
@ -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, "");
|
||||
|
||||
|
|
Loading…
Reference in New Issue