diff options
-rw-r--r-- | apps/files_sharing/lib/propagation/propagationmanager.php | 6 | ||||
-rw-r--r-- | lib/private/connector/sabre/file.php | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/propagation/propagationmanager.php b/apps/files_sharing/lib/propagation/propagationmanager.php index 794a7ae04f5..fa073be7f60 100644 --- a/apps/files_sharing/lib/propagation/propagationmanager.php +++ b/apps/files_sharing/lib/propagation/propagationmanager.php @@ -105,8 +105,8 @@ class PropagationManager { // for marking shares owned by the active user as dirty when a file inside them changes $this->listenToOwnerChanges($user->getUID(), $user->getUID()); - \OC_Hook::connect('OC_Filesystem', 'write', $watcher, 'writeHook'); - \OC_Hook::connect('OC_Filesystem', 'delete', $watcher, 'writeHook'); - \OC_Hook::connect('OC_Filesystem', 'rename', $watcher, 'renameHook'); + \OC_Hook::connect('OC_Filesystem', 'post_write', $watcher, 'writeHook'); + \OC_Hook::connect('OC_Filesystem', 'post_delete', $watcher, 'writeHook'); + \OC_Hook::connect('OC_Filesystem', 'post_rename', $watcher, 'renameHook'); } } diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php index 100aba13668..8ff5577629d 100644 --- a/lib/private/connector/sabre/file.php +++ b/lib/private/connector/sabre/file.php @@ -181,6 +181,7 @@ class File extends Node implements IFile { $view = \OC\Files\Filesystem::getView(); if ($view) { $hookPath = $view->getRelativePath($this->fileView->getAbsolutePath($this->path)); + $this->fileView->getUpdater()->propagate($hookPath); if (!$exists) { \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, array( \OC\Files\Filesystem::signal_param_path => $hookPath |