From 812a111107886b4264298d6a67038f6efe808ee2 Mon Sep 17 00:00:00 2001 From: smolten Date: Tue, 13 Dec 2022 07:17:28 +0000 Subject: [PATCH] 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. --- inc/mod/pages.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 7522e2a5..9ead82e6 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1257,9 +1257,11 @@ function mod_move_reply($originBoard, $postID) { // build index buildIndex(); - // build new thread - buildThread($newID); - + if ($post['op']) { + // build new thread + buildThread($newID); + } + // trigger themes rebuildThemes('post', $targetBoard); // mod log