summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorPauli Järvinen <pauli.jarvinen@gmail.com>2017-07-16 12:49:46 +0300
committerPauli Järvinen <pauli.jarvinen@gmail.com>2017-07-16 13:13:15 +0300
commit8dce97a3e17a42ce734d5ca10899a08b96721f18 (patch)
treef463ca1e4f6393854e7b7f5d693165ace7535fe8 /lib/private/Share20
parenta23cdd04bb3ba3ff9e6313ae92b01d4fc0c1167c (diff)
downloadnextcloud-server-8dce97a3e17a42ce734d5ca10899a08b96721f18.tar.gz
nextcloud-server-8dce97a3e17a42ce734d5ca10899a08b96721f18.zip
Fix emitting of legacy hook post_unshare
- When a file was unshared, the legacy hook pre_unshare fired twice and the hook post_unshare did not fire at all. This was obviously a copy-paste error. Signed-off-by: Pauli Järvinen <pauli.jarvinen@gmail.com>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/LegacyHooks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Share20/LegacyHooks.php b/lib/private/Share20/LegacyHooks.php
index 728ea78a8a6..09acf6c50e7 100644
--- a/lib/private/Share20/LegacyHooks.php
+++ b/lib/private/Share20/LegacyHooks.php
@@ -71,7 +71,7 @@ class LegacyHooks {
$formatted['deletedShares'] = $formattedDeletedShares;
- \OC_Hook::emit('OCP\Share', 'pre_unshare', $formatted);
+ \OC_Hook::emit('OCP\Share', 'post_unshare', $formatted);
}
private function formatHookParams(IShare $share) {