diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-06-02 15:40:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 15:40:51 +0200 |
commit | 6578a934636fa0cd6a94d2738b9c2fc0cd4cca30 (patch) | |
tree | 053d5a8102481540c3a34d9c7e54941aaff7f5b0 /lib | |
parent | d9a9714675eaeca689302eea8e432ff32ca2f048 (diff) | |
parent | 5ae5729664fcc780c19cb1ffccb735a02506b25c (diff) | |
download | nextcloud-server-6578a934636fa0cd6a94d2738b9c2fc0cd4cca30.tar.gz nextcloud-server-6578a934636fa0cd6a94d2738b9c2fc0cd4cca30.zip |
Merge pull request #27053 from nextcloud/bugfix/noid/dont-throw-when-comments-is-disabled
Don't throw when comments is disabled
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Comments/Manager.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index beaab9535ac..93b5ed4cc42 100644 --- a/lib/private/Comments/Manager.php +++ b/lib/private/Comments/Manager.php @@ -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'); } } |