Don't throw when comments is disabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
6a29b60260
commit
5593ec985e
|
@ -30,7 +30,6 @@ namespace OC\Comments;
|
||||||
|
|
||||||
use Doctrine\DBAL\Exception\DriverException;
|
use Doctrine\DBAL\Exception\DriverException;
|
||||||
use Doctrine\DBAL\Exception\InvalidFieldNameException;
|
use Doctrine\DBAL\Exception\InvalidFieldNameException;
|
||||||
use OCA\Comments\AppInfo\Application;
|
|
||||||
use OCP\AppFramework\Utility\ITimeFactory;
|
use OCP\AppFramework\Utility\ITimeFactory;
|
||||||
use OCP\Comments\CommentsEvent;
|
use OCP\Comments\CommentsEvent;
|
||||||
use OCP\Comments\IComment;
|
use OCP\Comments\IComment;
|
||||||
|
@ -1304,7 +1303,7 @@ class Manager implements ICommentsManager {
|
||||||
* @since 21.0.0
|
* @since 21.0.0
|
||||||
*/
|
*/
|
||||||
public function load(): void {
|
public function load(): void {
|
||||||
$this->initialStateService->provideInitialState(Application::APP_ID, 'max-message-length', IComment::MAX_MESSAGE_LENGTH);
|
$this->initialStateService->provideInitialState('comments', 'max-message-length', IComment::MAX_MESSAGE_LENGTH);
|
||||||
Util::addScript(Application::APP_ID, 'comments-app');
|
Util::addScript('comments', 'comments-app');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue