From 5213e5b06fba1a1c800cf8a0eabec6571c04a61c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 5 Feb 2026 16:37:24 +0100 Subject: [PATCH] fix: don't trigger moveShareInOrOutOfShare for reshares Signed-off-by: Robin Appelman --- apps/files_sharing/lib/Updater.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/files_sharing/lib/Updater.php b/apps/files_sharing/lib/Updater.php index 24e82330d436f..d332e1bc082df 100644 --- a/apps/files_sharing/lib/Updater.php +++ b/apps/files_sharing/lib/Updater.php @@ -50,6 +50,12 @@ private static function moveShareInOrOutOfShare($path): void { $src = $userFolder->get($path); + // if the share itself is being moved, we don't need to do anything, + // since incoming shares can't be moved into other shares (and thus also not out of shares) + if ($src->getMountPoint() instanceof SharedMount && $src->getInternalPath() === '') { + return; + } + $shareManager = Server::get(\OCP\Share\IManager::class); // We intentionally include invalid shares, as they have been automatically invalidated due to the node no longer