summaryrefslogtreecommitdiffstats
path: root/lib/Controller/PageController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-05-20 14:58:34 +0200
committerJoas Schilling <coding@schilljs.com>2022-05-20 14:58:34 +0200
commit384d25896f9a26e539d265bf9c388076f4fe9661 (patch)
tree2acac5d303cb442a76582e111c1591c5bdf7758b /lib/Controller/PageController.php
parent494e6b0835cb7cacc890d9ae8ad3b855dc69de39 (diff)
Add template data as the app parameter is currently not public
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/PageController.php')
-rw-r--r--lib/Controller/PageController.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index 2ee61ccc3..0cada87b2 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -25,6 +25,7 @@ declare(strict_types=1);
namespace OCA\Talk\Controller;
+use OCA\Talk\AppInfo\Application;
use OCA\Talk\Exceptions\ParticipantNotFoundException;
use OCA\Talk\Exceptions\RoomNotFoundException;
use OCA\Talk\Config;
@@ -251,7 +252,9 @@ class PageController extends Controller {
}
$this->eventDispatcher->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts', new GenericEvent());
- $response = new TemplateResponse($this->appName, 'index');
+ $response = new TemplateResponse($this->appName, 'index', [
+ 'app' => Application::APP_ID,
+ ]);
$csp = new ContentSecurityPolicy();
$csp->addAllowedConnectDomain('*');
$csp->addAllowedMediaDomain('blob:');