[Pkg-owncloud-commits] [owncloud] 101/215: triger propagation for webdav uploads
David Prévot
taffit at moszumanska.debian.org
Tue May 5 01:01:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 2e897f05b12689d783c68bcfc6206e2adfde75b1
Author: Robin Appelman <icewind at owncloud.com>
Date: Tue Apr 21 13:50:33 2015 +0200
triger propagation for webdav uploads
use post hooks for share etag propagator
---
apps/files_sharing/lib/propagation/propagationmanager.php | 6 +++---
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 794a7ae..fa073be 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 100aba1..8ff5577 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list