mirror of
https://github.com/nextcloud/server.git
synced 2026-03-08 00:11:03 -05:00
add delete hook for trash bin app
This commit is contained in:
parent
a745901d50
commit
feee4b865b
1 changed files with 1 additions and 0 deletions
|
|
@ -530,6 +530,7 @@ class Trashbin {
|
|||
$size += $view->filesize('/files_trashbin/files/' . $file);
|
||||
}
|
||||
$view->unlink('/files_trashbin/files/' . $file);
|
||||
\OC_Hook::emit('\OCP\Trashbin', 'delete', array('path' => $path));
|
||||
$trashbinSize -= $size;
|
||||
self::setTrashbinSize($user, $trashbinSize);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue