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

Merge pull request #759 from Zankaria/fake-copy

Use hardlinks instead of copying the file
This commit is contained in:
Lorenzo Yario 2024-05-22 23:14:49 -07:00 committed by GitHub
commit d990c344d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1342,8 +1342,8 @@ function mod_move($originBoard, $postID) {
if ($targetBoard === $originBoard) if ($targetBoard === $originBoard)
error(_('Target and source board are the same.')); error(_('Target and source board are the same.'));
// copy() if leaving a shadow thread behind; else, rename(). // link() if leaving a shadow thread behind; else, rename().
$clone = $shadow ? 'copy' : 'rename'; $clone = $shadow ? 'link' : 'rename';
// indicate that the post is a thread // indicate that the post is a thread
$post['op'] = true; $post['op'] = true;