When moving a post, add condition (post is Thread) before trying to make Thread for post. Removes "Thread Does not exist" page that showed up even when a post was successfully moved between threads.

This commit is contained in:
smolten 2022-12-13 07:17:28 +00:00 committed by scotty
parent 191dbd3be0
commit 812a111107

View File

@ -1257,9 +1257,11 @@ function mod_move_reply($originBoard, $postID) {
// build index // build index
buildIndex(); buildIndex();
// build new thread if ($post['op']) {
buildThread($newID); // build new thread
buildThread($newID);
}
// trigger themes // trigger themes
rebuildThemes('post', $targetBoard); rebuildThemes('post', $targetBoard);
// mod log // mod log