mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix(Propagator): Also skip groupfolders versions and trash entries
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
153eaca548
commit
398747f46b
1 changed files with 8 additions and 3 deletions
|
|
@ -69,9 +69,14 @@ class Propagator implements IPropagator {
|
|||
$storageId = $this->storage->getStorageCache()->getNumericId();
|
||||
|
||||
$parents = $this->getParents($internalPath);
|
||||
if ($this->storage->instanceOfStorage(LocalRootStorage::class) && str_starts_with($internalPath, '__groupfolders')) {
|
||||
// Remove '' and '__groupfolders'
|
||||
$parents = array_slice($parents, 2);
|
||||
if ($this->storage->instanceOfStorage(LocalRootStorage::class)) {
|
||||
if (str_starts_with($internalPath, '__groupfolders/versions') || str_starts_with($internalPath, '__groupfolders/trash')) {
|
||||
// Remove '', '__groupfolders' and '__groupfolders/versions' or '__groupfolders/trash'
|
||||
$parents = array_slice($parents, 3);
|
||||
} elseif (str_starts_with($internalPath, '__groupfolders')) {
|
||||
// Remove '' and '__groupfolders'
|
||||
$parents = array_slice($parents, 2);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->inBatch) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue