Skip to content

Commit

Permalink
Merge pull request #755 from nextcloud/fix/StorageNotAvailableException
Browse files Browse the repository at this point in the history
fix: catch and filter shares whom storage is not available
  • Loading branch information
skjnldsv authored Jun 14, 2024
2 parents 1d1a3b4 + 6109071 commit 2aa97ac
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 2aa97ac

Please sign in to comment.