diff --git a/patches/042-exclude-reovery-from-quota.patch b/patches/042-exclude-reovery-from-quota.patch new file mode 100644 index 0000000000000000000000000000000000000000..d88522736c6ff16076a8c4fe6312124fa7958e98 --- /dev/null +++ b/patches/042-exclude-reovery-from-quota.patch @@ -0,0 +1,16 @@ +--- lib/private/legacy/OC_Helper.php 2025-02-20 10:12:51.017628329 +0100 ++++ lib/private/legacy/OC_Helper-new.php 2025-02-21 15:50:32.660042704 +0100 +@@ -539,6 +539,13 @@ + if ($sourceStorage->instanceOfStorage('\OC\Files\Storage\Wrapper\Quota')) { + /** @var \OC\Files\Storage\Wrapper\Quota $storage */ + $quota = $sourceStorage->getQuota(); ++ $recoveryFolder = \OC::$server->getConfig()->getSystemValue('murena_recovery_folder_path', ''); ++ $rootFolder = \OC::$server->get(\OCP\Files\IRootFolder::class); ++ $userFolder = $rootFolder->getUserFolder($storage->getOwner($path)); ++ if(!empty($recoveryFolder) && $userFolder->nodeExists($recoveryFolder)){ ++ $recoverySize = $userFolder->get($recoveryFolder)->getSize(); ++ $used = max($used - $recoverySize, 0); ++ } + } + try { + $free = $sourceStorage->free_space($rootInfo->getInternalPath()); \ No newline at end of file