updated answer_redirect with post_id

main
fuzzykitten 2025-03-14 04:51:08 -04:00
parent 8612efc339
commit 0e7fd914e7
1 changed files with 3 additions and 3 deletions

View File

@ -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, "");