From 33cee3502a81e43d429d939c62e1bf95b4bb2b7d Mon Sep 17 00:00:00 2001 From: Semih Serhat Karakaya Date: Mon, 17 Oct 2016 13:20:41 +0300 Subject: [PATCH] Update file.php put function posthook calls Logicaly, postHooks should emit after touch. For chunking file it is already emitting after touch. Signed-off-by: Roeland Jago Douma --- apps/dav/lib/Connector/Sabre/File.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php index f2c69eccff..d0826ee5a8 100644 --- a/apps/dav/lib/Connector/Sabre/File.php +++ b/apps/dav/lib/Connector/Sabre/File.php @@ -203,10 +203,6 @@ class File extends Node implements IFile { throw new FileLocked($e->getMessage(), $e->getCode(), $e); } - if ($view) { - $this->emitPostHooks($exists); - } - // allow sync clients to send the mtime along in a header $request = \OC::$server->getRequest(); if (isset($request->server['HTTP_X_OC_MTIME'])) { @@ -214,6 +210,10 @@ class File extends Node implements IFile { header('X-OC-MTime: accepted'); } } + + if ($view) { + $this->emitPostHooks($exists); + } $this->refreshInfo();