should fix moving a spoilered thread (OP) image

This commit is contained in:
Thalis 2017-07-28 21:01:12 +02:00 committed by GitHub
parent d5ee60009f
commit 7883998a78

View File

@ -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']);
}
}