mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Take the same path (with /USERNAME/ as base) for every emmited hooks
This commit is contained in:
parent
a41541ae22
commit
55fe036dbf
1 changed files with 2 additions and 2 deletions
|
|
@ -473,7 +473,7 @@ class Trashbin {
|
|||
$fileInfos = $view->getDirectoryContent('files_trashbin/files');
|
||||
|
||||
foreach($fileInfos as $fileInfo){
|
||||
$path = $view->getRelativePath($fileInfo->getPath());
|
||||
$path = $view->getRelativePath($fileInfo->getPath());
|
||||
self::emitTrashbinPreDelete($path);
|
||||
}
|
||||
|
||||
|
|
@ -482,7 +482,7 @@ class Trashbin {
|
|||
$query->execute(array($user));
|
||||
|
||||
foreach($fileInfos as $fileInfo){
|
||||
$path = $fileInfo->getPath();
|
||||
$path = $view->getRelativePath($fileInfo->getPath());
|
||||
self::emitTrashbinPostDelete($path);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue