aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/zfinger.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php
index d438940a1..50f4d0afe 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -173,6 +173,8 @@ function zfinger_init(&$a) {
$ret['site'] = array();
$ret['site']['url'] = z_root();
+ $ret['site']['url_sig'] = base64url_encode(rsa_sign(z_root(),$e['channel_prvkey']));
+
$dirmode = get_config('system','directory_mode');
if(($dirmode === false) || ($dirmode == DIRECTORY_MODE_NORMAL))
$ret['site']['directory_mode'] = 'normal';
@@ -192,6 +194,10 @@ function zfinger_init(&$a) {
if($register_policy == REGISTER_OPEN)
$ret['site']['register_policy'] = 'open';
+ require_once('include/account.php');
+ $ret['site']['accounts'] = account_total();
+ $ret['site']['admin'] = get_config('system','admin_email');
+
json_return_and_die($ret);
} \ No newline at end of file