From b011e42ad2fc4022a68d2258913bc364fe8df7e5 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 5 Nov 2018 18:14:58 +0000 Subject: [PATCH] Issue 6074: Language and "explicit" are now exported --- mod/friendica.php | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/mod/friendica.php b/mod/friendica.php index bf3f7942f9..2629a0a19e 100644 --- a/mod/friendica.php +++ b/mod/friendica.php @@ -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(); } -- 2.39.5