Merge pull request #8250 from annando/issue-8233
Issue 8233: Fix remote subscriptions
This commit is contained in:
commit
b53f2f2933
1 changed files with 2 additions and 8 deletions
|
@ -455,15 +455,9 @@ function dfrn_request_post(App $a)
|
||||||
// Diaspora needs the uri in the format user@domain.tld
|
// Diaspora needs the uri in the format user@domain.tld
|
||||||
// Diaspora will support the remote subscription in a future version
|
// Diaspora will support the remote subscription in a future version
|
||||||
if ($network == Protocol::DIASPORA) {
|
if ($network == Protocol::DIASPORA) {
|
||||||
$uri = $nickname . '@' . DI::baseUrl()->getHostname();
|
$uri = urlencode($a->profile['addr']);
|
||||||
|
|
||||||
if (DI::baseUrl()->getUrlPath()) {
|
|
||||||
$uri .= '/' . DI::baseUrl()->getUrlPath();
|
|
||||||
}
|
|
||||||
|
|
||||||
$uri = urlencode($uri);
|
|
||||||
} else {
|
} else {
|
||||||
$uri = 'profile/' . $nickname;
|
$uri = urlencode($a->profile['url']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = str_replace('{uri}', $uri, $url);
|
$url = str_replace('{uri}', $uri, $url);
|
||||||
|
|
Loading…
Reference in a new issue