From b0b684bdb1bb1a2811b917eaeabdfd5a5be384cd Mon Sep 17 00:00:00 2001 From: Zankaria Date: Wed, 22 May 2024 23:54:06 +0200 Subject: [PATCH] pages.php: use link to create hardlinks isntead of full file copy for thread moving --- inc/mod/pages.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 066afa51..7180d9d8 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1345,8 +1345,8 @@ function mod_move($originBoard, $postID) { if ($targetBoard === $originBoard) error(_('Target and source board are the same.')); - // copy() if leaving a shadow thread behind; else, rename(). - $clone = $shadow ? 'copy' : 'rename'; + // link() if leaving a shadow thread behind; else, rename(). + $clone = $shadow ? 'link' : 'rename'; // indicate that the post is a thread $post['op'] = true; @@ -1639,7 +1639,7 @@ function mod_merge($originBoard, $postID) { $op = $post; $op['id'] = $newID; - $clone = $shadow ? 'copy' : 'rename'; + $clone = $shadow ? 'link' : 'rename'; if ($post['has_file']) { // copy image