Skip to content

Commit 6578a93

Browse files
Merge pull request #27053 from nextcloud/bugfix/noid/dont-throw-when-comments-is-disabled
Don't throw when comments is disabled
2 parents d9a9714 + 5ae5729 commit 6578a93

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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;
@@ -1309,7 +1308,7 @@ private function sendEvent($eventType, IComment $comment) {
13091308
* @since 21.0.0
13101309
*/
13111310
public function load(): void {
1312-
$this->initialStateService->provideInitialState(Application::APP_ID, 'max-message-length', IComment::MAX_MESSAGE_LENGTH);
1313-
Util::addScript(Application::APP_ID, 'comments-app');
1311+
$this->initialStateService->provideInitialState('comments', 'max-message-length', IComment::MAX_MESSAGE_LENGTH);
1312+
Util::addScript('comments', 'comments-app');
13141313
}
13151314
}

0 commit comments

Comments
 (0)