Use default_timeline_path to show first start or not

pull/833/head
Akhil 2023-09-26 20:17:30 +05:30
parent 83ed204d9c
commit 77cb06e67a
No known key found for this signature in database
GPG Key ID: A8AB680DBB7F3D45
1 changed files with 2 additions and 1 deletions

View File

@ -81,6 +81,7 @@ class OtherController extends GenericApiController
return $this->config->getUserValue($uid, Application::APPNAME, $key, $default); return $this->config->getUserValue($uid, Application::APPNAME, $key, $default);
}; };
$defaultTimelinePath = $this->config->getSystemValue('memories.default_timeline_path', 'EMPTY');
return new JSONResponse([ return new JSONResponse([
// general stuff // general stuff
'version' => $version, 'version' => $version,
@ -98,7 +99,7 @@ class OtherController extends GenericApiController
'preview_generator_enabled' => Util::previewGeneratorIsEnabled(), 'preview_generator_enabled' => Util::previewGeneratorIsEnabled(),
// general settings // general settings
'timeline_path' => $getAppConfig('timelinePath', 'EMPTY'), 'timeline_path' => $getAppConfig('timelinePath', $defaultTimelinePath),
'enable_top_memories' => 'true' === $getAppConfig('enableTopMemories', 'true'), 'enable_top_memories' => 'true' === $getAppConfig('enableTopMemories', 'true'),
// viewer settings // viewer settings