Merge pull request #32580 from nextcloud/bugfix/noid/fix-handling-events-without-name

Fix handling events without names in activities
This commit is contained in:
Joas Schilling 2022-05-25 09:11:05 +02:00 committed by GitHub
commit 95f390d368
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,9 +88,9 @@ class Event extends Base {
$params = [
'type' => 'calendar-event',
'id' => $eventData['id'],
'name' => $eventData['name'],
'name' => trim($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