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 <[email protected]>
  • Loading branch information
skjnldsv committed Jun 14, 2024
1 parent 1d1a3b4 commit 6109071
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 @@ -12,6 +12,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 @@ -103,6 +104,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 6109071

Please sign in to comment.