+ // Diaspora needs the uri in the format user@domain.tld
+ // Diaspora will support the remote subscription in a future version
+ if ($network == NETWORK_DIASPORA) {
+ $uri = $nickname.'@'.$a->get_hostname();
+
+ if ($a->get_path())
+ $uri .= '/'.$a->get_path();
+
+ $uri = urlencode($uri);
+ } else
+ $uri = $a->get_baseurl().'/profile/'.$nickname;
+
+ $url = str_replace('{uri}', $uri, $url);