diff --git a/src/Navigation/Notifications/Factory/Notification.php b/src/Navigation/Notifications/Factory/Notification.php index 10c8b54a0e..5c1f74df4f 100644 --- a/src/Navigation/Notifications/Factory/Notification.php +++ b/src/Navigation/Notifications/Factory/Notification.php @@ -183,6 +183,13 @@ class Notification extends BaseFactory implements ICanCreateFromTableRow } } + // Final check on $link_item + // @see https://github.com/friendica/friendica/issues/11632#issuecomment-1183365937 + if (empty($link_item)) { + $this->logger->info('Link item is still empty. Dumping whole Notification object:', [$Notification]); + return $message; + } + $link = $this->baseUrl . '/display/' . urlencode($link_item['guid']); $body = BBCode::toPlaintext($item['body'], false);