*/
use Friendica\App;
use Friendica\Core\Config;
+use Friendica\Core\System;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
use Friendica\Model\Profile;
// Get out if the system doesn't have public access allowed
if (intval(Config::get('system', 'block_public'))) {
- http_status_exit(401);
+ System::httpExit(401);
}
// Return the raw content of the template. We use this to make templates usable for js functions.
'nick' => $contact['nick'],
'addr' => defaults($contact, 'addr', $contact['url']),
'thumb' => proxy_url($contact['thumb'], false, PROXY_SIZE_THUMB),
- 'url' => $cid ? ('redir/' . $cid) : Profile::zrl($contact['url']),
+ 'url' => Contact::magicLink($contact['url']),
'nurl' => $contact['nurl'], // We additionally store the nurl as identifier
'location' => $contact['location'],
'gender' => $contact['gender'],
return $o;
} else {
- json_return_and_die($profile);
+ System::jsonExit($profile);
}
}