fix: enable example contact feature by default

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
Richard Steinmetz 2025-06-07 19:33:52 +02:00
parent b640c161ae
commit 84c2e2a5ce
No known key found for this signature in database
GPG key ID: 27137D9E7D273FB2
3 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ class ExampleContentController extends ApiController {
}
public function setDefaultContact(?string $contactData = null) {
if (!$this->config->getAppValue(Application::APP_ID, 'enableDefaultContact', 'no')) {
if (!$this->config->getAppValue(Application::APP_ID, 'enableDefaultContact', 'yes')) {
return new JSONResponse([], Http::STATUS_FORBIDDEN);
}
$this->setCard($contactData);

View file

@ -28,7 +28,7 @@ class DefaultContactService {
}
public function createDefaultContact(int $addressBookId): void {
$enableDefaultContact = $this->config->getValueString(Application::APP_ID, 'enableDefaultContact', 'no');
$enableDefaultContact = $this->config->getValueString(Application::APP_ID, 'enableDefaultContact', 'yes');
if ($enableDefaultContact !== 'yes') {
return;
}

View file

@ -43,7 +43,7 @@ class ExampleContentSettings implements ISettings {
}
if ($contactsEnabled) {
$enableDefaultContact = $this->config->getAppValue(Application::APP_ID, 'enableDefaultContact', 'no');
$enableDefaultContact = $this->config->getAppValue(Application::APP_ID, 'enableDefaultContact', 'yes');
$this->initialState->provideInitialState('enableDefaultContact', $enableDefaultContact);
$this->initialState->provideInitialState(
'hasCustomDefaultContact',