Avoid blank network page on database issues

This commit is contained in:
Michael 2024-09-15 05:35:30 +00:00
parent 32f8b652ad
commit 47478fe8f7
2 changed files with 13 additions and 6 deletions

View file

@ -222,7 +222,9 @@ class Network extends Timeline
$o .= $this->conversation->render($items, Conversation::MODE_NETWORK, false, false, $this->getOrder(), $this->session->getLocalUserId());
} catch (\Exception $e) {
$this->logger->error('Exception when fetching items', ['code' => $e->getCode(), 'message' => $e->getMessage()]);
$o .= $this->l10n->t('Error %d (%s) while fetching the timeline.', $e->getCode(), $e->getMessage());
$items = [];
}
if ($this->pConfig->get($this->session->getLocalUserId(), 'system', 'infinite_scroll')) {