OStatus: Fixed communication issues with deleted contacts

This commit is contained in:
Michael 2018-03-13 06:21:44 +00:00
parent 23718aeae3
commit 32ee4ca4b1
4 changed files with 37 additions and 39 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());