mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:40:17 +00:00
Merge pull request #6080 from annando/issue-6074
Issue 6074: Language and "explicit" are now exported
This commit is contained in:
commit
e53bba0457
1 changed files with 13 additions and 10 deletions
|
@ -46,18 +46,21 @@ function friendica_init(App $a)
|
|||
}
|
||||
|
||||
$data = [
|
||||
'version' => FRIENDICA_VERSION,
|
||||
'url' => System::baseUrl(),
|
||||
'addons' => $visible_addons,
|
||||
'locked_features' => $locked_features,
|
||||
'register_policy' => $register_policy[intval(Config::get('config', 'register_policy'))],
|
||||
'admin' => $admin,
|
||||
'site_name' => Config::get('config', 'sitename'),
|
||||
'platform' => FRIENDICA_PLATFORM,
|
||||
'info' => Config::get('config', 'info'),
|
||||
'no_scrape_url' => System::baseUrl().'/noscrape'
|
||||
'version' => FRIENDICA_VERSION,
|
||||
'url' => System::baseUrl(),
|
||||
'addons' => $visible_addons,
|
||||
'locked_features' => $locked_features,
|
||||
'explicit_content' => (int)Config::get('system', 'explicit_content', false),
|
||||
'language' => Config::get('system','language'),
|
||||
'register_policy ' => $register_policy[intval(Config::get('config', 'register_policy'))],
|
||||
'admin' => $admin,
|
||||
'site_name' => Config::get('config', 'sitename'),
|
||||
'platform' => FRIENDICA_PLATFORM,
|
||||
'info' => Config::get('config', 'info'),
|
||||
'no_scrape_url' => System::baseUrl().'/noscrape'
|
||||
];
|
||||
|
||||
header('Content-type: application/json; charset=utf-8');
|
||||
echo json_encode($data);
|
||||
killme();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue