From 7883998a786f89b202124ef73e03d07696312b94 Mon Sep 17 00:00:00 2001 From: Thalis Date: Fri, 28 Jul 2017 21:01:12 +0200 Subject: [PATCH] should fix moving a spoilered thread (OP) image --- inc/mod/pages.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index e51bbd7d..578752ab 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1356,6 +1356,7 @@ function mod_move($originBoard, $postID) { // copy image foreach ($post['files'] as $i => &$file) { $clone($file['file_path'], sprintf($config['board_path'], $board['uri']) . $config['dir']['img'] . $file['file']); + if ($file['thumb'] != 'spoiler') { //trying to move/copy the spoiler thumb raises an error $clone($file['thumb_path'], sprintf($config['board_path'], $board['uri']) . $config['dir']['thumb'] . $file['thumb']); } }