mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
invalidate mount cache after accepting or renaming federated share
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
c407bb9786
commit
de5af8efbf
1 changed files with 3 additions and 0 deletions
3
apps/files_sharing/lib/External/Manager.php
vendored
3
apps/files_sharing/lib/External/Manager.php
vendored
|
|
@ -374,6 +374,7 @@ class Manager {
|
|||
$this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'accept');
|
||||
$event = new FederatedShareAddedEvent($share['remote']);
|
||||
$this->eventDispatcher->dispatchTyped($event);
|
||||
$this->eventDispatcher->dispatchTyped(new Files\Events\InvalidateMountCacheEvent($this->userManager->get($this->uid)));
|
||||
$result = true;
|
||||
}
|
||||
}
|
||||
|
|
@ -596,6 +597,8 @@ class Manager {
|
|||
');
|
||||
$result = (bool)$query->execute([$target, $targetHash, $sourceHash, $this->uid]);
|
||||
|
||||
$this->eventDispatcher->dispatchTyped(new Files\Events\InvalidateMountCacheEvent($this->userManager->get($this->uid)));
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue