mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
use pre_unshare hook, otherwise the share is already removed. Which means that we have no chance to determine which folder has to be updated
This commit is contained in:
parent
4826564344
commit
2d00d13a5d
2 changed files with 2 additions and 1 deletions
|
|
@ -15,4 +15,4 @@ OCP\Util::addScript('files_sharing', 'share');
|
|||
\OC_Hook::connect('OC_Filesystem', 'post_delete', '\OC\Files\Cache\Shared_Updater', 'deleteHook');
|
||||
\OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Shared_Updater', 'renameHook');
|
||||
\OC_Hook::connect('OCP\Share', 'post_shared', '\OC\Files\Cache\Shared_Updater', 'shareHook');
|
||||
\OC_Hook::connect('OCP\Share', 'post_unshare', '\OC\Files\Cache\Shared_Updater', 'shareHook');
|
||||
\OC_Hook::connect('OCP\Share', 'pre_unshare', '\OC\Files\Cache\Shared_Updater', 'shareHook');
|
||||
|
|
@ -406,6 +406,7 @@ class Share {
|
|||
\OC_Hook::emit('OCP\Share', 'pre_unshare', array(
|
||||
'itemType' => $itemType,
|
||||
'itemSource' => $itemSource,
|
||||
'fileSource' => $item['file_source'],
|
||||
'shareType' => $shareType,
|
||||
'shareWith' => $shareWith,
|
||||
));
|
||||
|
|
|
|||
Loading…
Reference in a new issue