Skip to content

Commit 684a6d4

Browse files
committed
fixup! fix: add event link
Signed-off-by: Hamza <hamzamahjoubi221@gmail.com>
1 parent 4c049c9 commit 684a6d4

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

lib/Controller/ObjectController.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
1616
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
1717
use OCP\AppFramework\Http\RedirectResponse;
18-
use OCP\AppFramework\Http\Response;
19-
use OCP\AppFramework\Http\TemplateResponse;
2018
use OCP\IRequest;
2119
use OCP\IURLGenerator;
2220

@@ -43,11 +41,7 @@ public function __construct(
4341
#[NoCSRFRequired]
4442
#[FrontpageRoute(verb: 'GET', url: '/object/{uid}', postfix: 'uid')]
4543
#[FrontpageRoute(verb: 'GET', url: '/object/{uid}/{recurrenceId}', postfix: 'uid.recurrenceId')]
46-
public function index(string $uid, ?string $recurrenceId = null): Response {
47-
if ($this->userId === null) {
48-
$this->calendarInitialStateService->run();
49-
return new TemplateResponse($this->appName, 'main');
50-
}
44+
public function index(string $uid, ?string $recurrenceId = null): RedirectResponse {
5145

5246
$resolved = $this->objectResolverService->findByUid($this->userId, $uid);
5347

0 commit comments

Comments
 (0)