Remove dependency to App in Contact::createFromProbe
- Address https://github.com/friendica/friendica/issues/8473#issuecomment-641259906
This commit is contained in:
parent
5f18d27b0b
commit
a5a7855d39
7 changed files with 32 additions and 33 deletions
|
|
@ -91,7 +91,7 @@ function ostatus_subscribe_content(App $a)
|
|||
|
||||
$probed = Probe::uri($url);
|
||||
if ($probed['network'] == Protocol::OSTATUS) {
|
||||
$result = Contact::createFromProbe($uid, $url, true, Protocol::OSTATUS);
|
||||
$result = Contact::createFromProbe($a->user, $url, true, Protocol::OSTATUS);
|
||||
if ($result['success']) {
|
||||
$o .= ' - ' . DI::l10n()->t('success');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue