diff --git a/posting.php b/posting.php index d20c20ffe..fad434c03 100644 --- a/posting.php +++ b/posting.php @@ -344,7 +344,11 @@ if (($delete || $mode == 'delete') && !$confirm) { break; case 'delete': - \TorrentPier\Legacy\Post::delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id); + if (!$post_data['first_post']) { + \TorrentPier\Legacy\Post::delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id); + } else { + redirect("modcp.php?" . POST_TOPIC_URL . "=$topic_id&mode=delete&sid=" . $userdata['session_id']); + } break; }