From efd0a0e97aff89f0f8bc31a0a4278470eedb6311 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 9 Mar 2023 14:53:24 -0800 Subject: [PATCH] page: do not load sidebar on public --- lib/Controller/PublicAlbumController.php | 2 -- lib/Controller/PublicController.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/lib/Controller/PublicAlbumController.php b/lib/Controller/PublicAlbumController.php index 3d815f4d..df05933a 100644 --- a/lib/Controller/PublicAlbumController.php +++ b/lib/Controller/PublicAlbumController.php @@ -2,7 +2,6 @@ namespace OCA\Memories\Controller; -use OCA\Files\Event\LoadSidebar; use OCA\Memories\Db\TimelineQuery; use OCP\App\IAppManager; use OCP\AppFramework\Controller; @@ -57,7 +56,6 @@ class PublicAlbumController extends Controller // Scripts Util::addScript($this->appName, 'memories-main'); - $this->eventDispatcher->dispatchTyped(new LoadSidebar()); PageController::provideCommonInitialState($this->initialState); $response = new PublicTemplateResponse($this->appName, 'main'); diff --git a/lib/Controller/PublicController.php b/lib/Controller/PublicController.php index 0ca79aad..5ebd4fd1 100644 --- a/lib/Controller/PublicController.php +++ b/lib/Controller/PublicController.php @@ -2,7 +2,6 @@ namespace OCA\Memories\Controller; -use OCA\Files\Event\LoadSidebar; use OCP\App\IAppManager; use OCP\AppFramework\AuthPublicShareController; use OCP\AppFramework\Http\Template\PublicTemplateResponse; @@ -100,7 +99,6 @@ class PublicController extends AuthPublicShareController // Scripts Util::addScript($this->appName, 'memories-main'); - $this->eventDispatcher->dispatchTyped(new LoadSidebar()); PageController::provideCommonInitialState($this->initialState); // Share info