diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index beaab9535ac53..93b5ed4cc42ae 100644 --- a/lib/private/Comments/Manager.php +++ b/lib/private/Comments/Manager.php @@ -30,7 +30,6 @@ use Doctrine\DBAL\Exception\DriverException; use Doctrine\DBAL\Exception\InvalidFieldNameException; -use OCA\Comments\AppInfo\Application; use OCP\AppFramework\Utility\ITimeFactory; use OCP\Comments\CommentsEvent; use OCP\Comments\IComment; @@ -1309,7 +1308,7 @@ private function sendEvent($eventType, IComment $comment) { * @since 21.0.0 */ public function load(): void { - $this->initialStateService->provideInitialState(Application::APP_ID, 'max-message-length', IComment::MAX_MESSAGE_LENGTH); - Util::addScript(Application::APP_ID, 'comments-app'); + $this->initialStateService->provideInitialState('comments', 'max-message-length', IComment::MAX_MESSAGE_LENGTH); + Util::addScript('comments', 'comments-app'); } }