mirror of
https://github.com/friendica/friendica
synced 2025-05-24 12:24:12 +02:00
Changed function name
This commit is contained in:
parent
9f01052dd2
commit
b8fa75b2dd
34 changed files with 54 additions and 54 deletions
|
@ -2319,7 +2319,7 @@ class Contact
|
|||
* @throws HTTPException\NotFoundException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
public static function createFromProbe(int $uid, $url, $network = '')
|
||||
public static function createFromProbeForUser(int $uid, $url, $network = '')
|
||||
{
|
||||
$result = ['cid' => -1, 'success' => false, 'message' => ''];
|
||||
|
||||
|
@ -2580,7 +2580,7 @@ class Contact
|
|||
{
|
||||
$contact = self::getById($cid, ['url']);
|
||||
|
||||
$result = self::createFromProbe($uid, $contact['url']);
|
||||
$result = self::createFromProbeForUser($uid, $contact['url']);
|
||||
|
||||
return $result['cid'];
|
||||
}
|
||||
|
@ -2738,7 +2738,7 @@ class Contact
|
|||
}
|
||||
} elseif (DBA::isResult($user) && in_array($user['page-flags'], [User::PAGE_FLAGS_SOAPBOX, User::PAGE_FLAGS_FREELOVE, User::PAGE_FLAGS_COMMUNITY])) {
|
||||
if (($user['page-flags'] == User::PAGE_FLAGS_FREELOVE) && ($network != Protocol::DIASPORA)) {
|
||||
self::createFromProbe($importer['uid'], $url, $network);
|
||||
self::createFromProbeForUser($importer['uid'], $url, $network);
|
||||
}
|
||||
|
||||
$condition = ['uid' => $importer['uid'], 'url' => $url, 'pending' => true];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue