1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

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,8 +1257,10 @@ 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);