mirror of
https://github.com/nextcloud/server.git
synced 2026-02-24 02:11:51 -05:00
fix(Propagator): Skip groupfolders root entries
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
a6d1fa1fa6
commit
ca9c54518a
1 changed files with 5 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ declare(strict_types=1);
|
|||
namespace OC\Files\Cache;
|
||||
|
||||
use OC\DB\Exceptions\DbalException;
|
||||
use OC\Files\Storage\LocalRootStorage;
|
||||
use OC\Files\Storage\Wrapper\Encryption;
|
||||
use OCP\DB\QueryBuilder\ILiteral;
|
||||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||
|
|
@ -51,6 +52,10 @@ class Propagator implements IPropagator {
|
|||
$storageId = $this->storage->getCache()->getNumericStorageId();
|
||||
|
||||
$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->inBatch) {
|
||||
foreach ($parents as $parent) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue