Issue 8233: Fix remote subscriptions

2022.09-rc
Michael 2020-02-06 22:45:22 +00:00
rodzic dad6b43689
commit 150c74be69
1 zmienionych plików z 2 dodań i 8 usunięć

Wyświetl plik

@ -455,15 +455,9 @@ function dfrn_request_post(App $a)
// 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 . '@' . DI::baseUrl()->getHostname();
if (DI::baseUrl()->getUrlPath()) {
$uri .= '/' . DI::baseUrl()->getUrlPath();
}
$uri = urlencode($uri);
$uri = urlencode($a->profile['addr']);
} else {
$uri = 'profile/' . $nickname;
$uri = urlencode($a->profile['url']);
}
$url = str_replace('{uri}', $uri, $url);