+ Profile::load($a, $which, $profile);
+
+ $json_info = [
+ 'addr' => $a->profile['addr'],
+ 'nick' => $which,
+ 'guid' => $a->profile['guid'],
+ 'key' => $a->profile['pubkey'],
+ 'homepage' => System::baseUrl()."/profile/{$which}",
+ 'comm' => ($a->profile['account-type'] == User::ACCOUNT_TYPE_COMMUNITY),
+ 'account-type' => $a->profile['account-type'],
+ ];
+
+ $dfrn_pages = ['request', 'confirm', 'notify', 'poll'];
+ foreach ($dfrn_pages as $dfrn) {
+ $json_info["dfrn-{$dfrn}"] = System::baseUrl()."/dfrn_{$dfrn}/{$which}";
+ }