Skip to content

Commit 5ae5729

Browse files
committed
Don't throw when comments is disabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 5432c95 commit 5ae5729

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/private/Comments/Manager.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
use Doctrine\DBAL\Exception\DriverException;
3232
use Doctrine\DBAL\Exception\InvalidFieldNameException;
33-
use OCA\Comments\AppInfo\Application;
3433
use OCP\AppFramework\Utility\ITimeFactory;
3534
use OCP\Comments\CommentsEvent;
3635
use OCP\Comments\IComment;
@@ -1304,7 +1303,7 @@ private function sendEvent($eventType, IComment $comment) {
13041303
* @since 21.0.0
13051304
*/
13061305
public function load(): void {
1307-
$this->initialStateService->provideInitialState(Application::APP_ID, 'max-message-length', IComment::MAX_MESSAGE_LENGTH);
1308-
Util::addScript(Application::APP_ID, 'comments-app');
1306+
$this->initialStateService->provideInitialState('comments', 'max-message-length', IComment::MAX_MESSAGE_LENGTH);
1307+
Util::addScript('comments', 'comments-app');
13091308
}
13101309
}

0 commit comments

Comments
 (0)