Merge pull request #32273 from nextcloud/backport/32152/stable24

[stable24] Allow compatibility wrapper on local external storage
This commit is contained in:
blizzz 2022-08-04 11:42:56 +02:00 committed by GitHub
commit d81e38d296
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,7 @@ class SetupManager {
});
Filesystem::addStorageWrapper('oc_encoding', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
if ($mount->getOption('encoding_compatibility', false) && !$storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage') && !$storage->isLocal()) {
if ($mount->getOption('encoding_compatibility', false) && !$storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage')) {
return new Encoding(['storage' => $storage]);
}
return $storage;