Skip to content

Commit

Permalink
Don't throw when comments is disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed May 21, 2021
1 parent 5432c95 commit bde6b69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Comments/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ private function sendEvent($eventType, IComment $comment) {
* @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');
}
}

0 comments on commit bde6b69

Please sign in to comment.