Merge pull request #4593 from annando/fix-ostatus

OStatus: Fixed communication issues with deleted contacts
This commit is contained in:
Hypolite Petovan
2018-03-14 18:46:21 -04:00
committed by GitHub
14 changed files with 110 additions and 122 deletions

View File

@@ -290,7 +290,7 @@ function subscribe_to_hub($url, $importer, $contact, $hubmode = 'subscribe') {
return;
}
$push_url = Config::get('system','url') . '/pubsub/' . $r[0]['nickname'] . '/' . $contact['id'];
$push_url = System::baseUrl() . '/pubsub/' . $r[0]['nickname'] . '/' . $contact['id'];
// Use a single verify token, even if multiple hubs
$verify_token = ((strlen($contact['hub-verify'])) ? $contact['hub-verify'] : random_string());