aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Comments
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-05-21 09:13:00 +0200
committerJoas Schilling <coding@schilljs.com>2021-05-21 12:04:23 +0200
commit5ae5729664fcc780c19cb1ffccb735a02506b25c (patch)
treedbd8636989f3149ce481fc89cf749ccafac075ee /lib/private/Comments
parent5432c958be918bece086ccf32ffd86f68bbda675 (diff)
downloadnextcloud-server-5ae5729664fcc780c19cb1ffccb735a02506b25c.tar.gz
nextcloud-server-5ae5729664fcc780c19cb1ffccb735a02506b25c.zip
Don't throw when comments is disabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Comments')
-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 1cc82b5c2ce..64941f55453 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;
@@ -1304,7 +1303,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');
}
}