Fix handling events without names in activities

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-05-24 17:04:56 +02:00 committed by backportbot-nextcloud[bot]
parent a15652aaf7
commit d29bb5ff9d

View file

@ -88,9 +88,9 @@ class Event extends Base {
$params = [
'type' => 'calendar-event',
'id' => $eventData['id'],
'name' => $eventData['name'],
'name' => $eventData['name'] !== '' ? $eventData['name'] : $this->l->t('Untitled event'),
];
if (isset($eventData['link']) && is_array($eventData['link']) && $this->appManager->isEnabledForUser('calendar')) {
try {
// The calendar app needs to be manually loaded for the routes to be loaded