page: do not load sidebar on public

pull/465/head
Varun Patil 2023-03-09 14:53:24 -08:00
parent 05e55e27ec
commit efd0a0e97a
2 changed files with 0 additions and 4 deletions

View File

@ -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');

View File

@ -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