Skip to content

Commit

Permalink
fix: catch and filter shares whom storage is not available
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv authored and backportbot[bot] committed Jun 14, 2024
1 parent a5e48bf commit b849e8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Service/RecentlySharedFilesSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Generator;
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
use OCP\Files\StorageNotAvailableException;
use OCP\IL10N;
use OCP\IUser;
use OCP\Share\IManager;
Expand Down Expand Up @@ -119,6 +120,8 @@ public function getMostRecentRecommendation(IUser $user, int $max): array {
);
} catch (NotFoundException $ex) {
return null;
} catch (StorageNotAvailableException $e) {
return null;
}
}, $shares));
}
Expand Down

0 comments on commit b849e8a

Please sign in to comment.