fix: don't trigger moveShareInOrOutOfShare for reshares

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-02-05 16:37:24 +01:00
parent 18d5dedb29
commit 3c7124d670
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -55,6 +55,12 @@ class Updater {
return;
}
// 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