diff options
-rw-r--r-- | include/identity.php | 8 | ||||
-rw-r--r-- | mod/zfinger.php | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php index 7e42e33a8..8f8a71fee 100644 --- a/include/identity.php +++ b/include/identity.php @@ -58,6 +58,14 @@ function create_dir_account() { } +function channel_total() { + $r = q("select channel_id from channel where true"); + if(is_array($r)) + return count($r); + return false; +} + + // Required: name, nickname, account_id diff --git a/mod/zfinger.php b/mod/zfinger.php index 50f4d0afe..12a24259e 100644 --- a/mod/zfinger.php +++ b/mod/zfinger.php @@ -196,6 +196,11 @@ function zfinger_init(&$a) { require_once('include/account.php'); $ret['site']['accounts'] = account_total(); + + require_once('include/identity.php'); + $ret['site']['channels'] = channel_total(); + + $ret['site']['admin'] = get_config('system','admin_email'); json_return_and_die($ret); |