mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 15:53:36 -04:00
Merge pull request #22159 from owncloud/fix_21678
Gracefull handle link shares rename hook
This commit is contained in:
commit
7568c40275
1 changed files with 6 additions and 0 deletions
|
|
@ -73,6 +73,12 @@ class Shared_Updater {
|
|||
*/
|
||||
static private function moveShareToShare($path) {
|
||||
$userFolder = \OC::$server->getUserFolder();
|
||||
|
||||
// If the user folder can't be constructed (e.g. link share) just return.
|
||||
if ($userFolder === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
$src = $userFolder->get($path);
|
||||
|
||||
$type = $src instanceof \OCP\Files\File ? 'file' : 'folder';
|
||||
|
|
|
|||
Loading…
Reference in a new issue