Skip to content

Commit 4a1e535

Browse files
committed
fix(caldav): use direct.edit route in event activities
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
1 parent 14868ac commit 4a1e535

File tree

1 file changed

+2
-7
lines changed
  • apps/dav/lib/CalDAV/Activity/Provider

1 file changed

+2
-7
lines changed

apps/dav/lib/CalDAV/Activity/Provider/Event.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,9 @@ protected function generateObjectParameter(array $eventData, string $affectedUse
7878
// as seen from the affected user.
7979
$objectId = base64_encode($this->url->getWebroot() . '/remote.php/dav/calendars/' . $affectedUser . '/' . $calendarUri . '_shared_by_' . $linkData['owner'] . '/' . $linkData['object_uri']);
8080
}
81-
$link = [
82-
'view' => 'dayGridMonth',
83-
'timeRange' => 'now',
84-
'mode' => 'sidebar',
81+
$params['link'] = $this->url->linkToRouteAbsolute('calendar.view.indexdirect.edit', [
8582
'objectId' => $objectId,
86-
'recurrenceId' => 'next'
87-
];
88-
$params['link'] = $this->url->linkToRouteAbsolute('calendar.view.indexview.timerange.edit', $link);
83+
]);
8984
} catch (\Exception $error) {
9085
// Do nothing
9186
}

0 commit comments

Comments
 (0)