Skip to content

Commit 82cc9c1

Browse files
authored
Merge pull request #24501 from nextcloud/personal-external-mount-id
set mountid for personal external storage mounts
2 parents 4deff37 + 8d96257 commit 82cc9c1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/files_external/lib/Config/ConfigAdapter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ public function getMountsForUser(IUser $user, IStorageFactory $loader) {
166166
'/' . $user->getUID() . '/files' . $storageConfig->getMountPoint(),
167167
null,
168168
$loader,
169-
$storageConfig->getMountOptions()
169+
$storageConfig->getMountOptions(),
170+
$storageConfig->getId()
170171
);
171172
} else {
172173
return new ExternalMountPoint(

apps/files_external/lib/Lib/PersonalMount.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ public function __construct(
5555
$mountpoint,
5656
$arguments = null,
5757
$loader = null,
58-
$mountOptions = null
58+
$mountOptions = null,
59+
$mountId = null
5960
) {
60-
parent::__construct($storage, $mountpoint, $arguments, $loader, $mountOptions);
61+
parent::__construct($storage, $mountpoint, $arguments, $loader, $mountOptions, $mountId);
6162
$this->storagesService = $storagesService;
6263
$this->numericStorageId = $storageId;
6364
}

0 commit comments

Comments
 (0)