Browse Source

Merge pull request #27053 from nextcloud/bugfix/noid/dont-throw-when-comments-is-disabled

Don't throw when comments is disabled
tags/v22.0.0beta4
Joas Schilling 3 years ago
parent
commit
6578a93463
No account linked to committer's email address
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      lib/private/Comments/Manager.php

+ 2
- 3
lib/private/Comments/Manager.php View File

@@ -30,7 +30,6 @@ namespace OC\Comments;

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 @@ class Manager implements ICommentsManager {
* @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');
}
}

Loading…
Cancel
Save