getId()); $relativeCalendarUrl = "remote-calendars/$sharedWithEncoded/{$calendarName}_shared_by_$calendarOwner"; $calendarUrl = $this->url->linkTo('', 'remote.php') . "/dav/$relativeCalendarUrl"; $calendarUrl = $this->url->getAbsoluteURL($calendarUrl); $notification = $this->federationFactory->getCloudFederationNotification(); $notification->setMessage( self::NOTIFICATION_SYNC_CALENDAR, CalendarFederationProvider::CALENDAR_RESOURCE, CalendarFederationProvider::PROVIDER_ID, [ 'sharedSecret' => $sharedSecret, self::PROP_SYNC_CALENDAR_SHARE_WITH => $shareWith->getId(), self::PROP_SYNC_CALENDAR_CALENDAR_URL => $calendarUrl, ], ); return $this->federationManager->sendCloudNotification( $shareWith->getRemote(), $notification, ); } }