// Diaspora needs the uri in the format user@domain.tld
// Diaspora will support the remote subscription in a future version
if ($network == Protocol::DIASPORA) {
- $uri = $nickname . '@' . $a->get_hostname();
+ $uri = $nickname . '@' . $a->getHostName();
- if ($a->get_path()) {
- $uri .= '/' . $a->get_path();
+ if ($a->getURLpath()) {
+ $uri .= '/' . $a->getURLpath();
}
$uri = urlencode($uri);
} elseif (x($_GET, 'address') && ($_GET['address'] != "")) {
$myaddr = $_GET['address'];
} elseif (local_user()) {
- if (strlen($a->urlpath)) {
+ if (strlen($a->getURLpath())) {
$myaddr = System::baseUrl() . '/profile/' . $a->user['nickname'];
} else {
$myaddr = $a->user['nickname'] . '@' . substr(System::baseUrl(), strpos(System::baseUrl(), '://') + 3);