Merge pull request #24513 from nextcloud/backport/24501/stable20

[stable20] set mountid for personal external storage mounts
This commit is contained in:
Morris Jobke 2020-12-02 20:50:08 +01:00 committed by GitHub
commit 54ab2b9f28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -166,7 +166,8 @@ class ConfigAdapter implements IMountProvider {
'/' . $user->getUID() . '/files' . $storageConfig->getMountPoint(),
null,
$loader,
$storageConfig->getMountOptions()
$storageConfig->getMountOptions(),
$storageConfig->getId()
);
} else {
return new ExternalMountPoint(

View File

@ -55,9 +55,10 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount {
$mountpoint,
$arguments = null,
$loader = null,
$mountOptions = null
$mountOptions = null,
$mountId = null
) {
parent::__construct($storage, $mountpoint, $arguments, $loader, $mountOptions);
parent::__construct($storage, $mountpoint, $arguments, $loader, $mountOptions, $mountId);
$this->storagesService = $storagesService;
$this->numericStorageId = $storageId;
}