mirror of
https://github.com/friendica/friendica
synced 2025-04-26 22:30:18 +00:00
Normalize Contact::magicLinkByContact method name
This commit is contained in:
parent
ae7115894f
commit
7320c5e8e8
3 changed files with 9 additions and 9 deletions
|
@ -2184,7 +2184,7 @@ class Contact extends BaseObject
|
|||
{
|
||||
$contact = DBA::selectFirst('contact', ['id', 'network', 'url', 'uid'], ['id' => $cid]);
|
||||
|
||||
return self::magicLinkbyContact($contact, $url);
|
||||
return self::magicLinkByContact($contact, $url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2197,7 +2197,7 @@ class Contact extends BaseObject
|
|||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
public static function magicLinkbyContact($contact, $url = '')
|
||||
public static function magicLinkByContact($contact, $url = '')
|
||||
{
|
||||
if ((!local_user() && !remote_user()) || ($contact['network'] != Protocol::DFRN)) {
|
||||
return $url ?: $contact['url']; // Equivalent to ($url != '') ? $url : $contact['url'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue