Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-06-02 16:40:51 +0300
committerGitHub <noreply@github.com>2021-06-02 16:40:51 +0300
commit6578a934636fa0cd6a94d2738b9c2fc0cd4cca30 (patch)
tree053d5a8102481540c3a34d9c7e54941aaff7f5b0
parentd9a9714675eaeca689302eea8e432ff32ca2f048 (diff)
parent5ae5729664fcc780c19cb1ffccb735a02506b25c (diff)
Merge pull request #27053 from nextcloud/bugfix/noid/dont-throw-when-comments-is-disabled
Don't throw when comments is disabled
-rw-r--r--lib/private/Comments/Manager.php5
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');
}
}