Remove dependency to App in Contact::createFromProbe
- Address https://github.com/friendica/friendica/issues/8473#issuecomment-641259906
This commit is contained in:
@@ -167,10 +167,9 @@ class Contact extends BaseModule
|
||||
return;
|
||||
}
|
||||
|
||||
$uid = $contact['uid'];
|
||||
|
||||
if ($contact['network'] == Protocol::OSTATUS) {
|
||||
$result = Model\Contact::createFromProbe($uid, $contact['url'], false, $contact['network']);
|
||||
$user = Model\User::getById($contact['uid']);
|
||||
$result = Model\Contact::createFromProbe($user, $contact['url'], false, $contact['network']);
|
||||
|
||||
if ($result['success']) {
|
||||
DBA::update('contact', ['subhub' => 1], ['id' => $contact_id]);
|
||||
|
||||
Reference in New Issue
Block a user