의 미러
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02:00
The value is used twice, so use a variable
This commit is contained in:
부모
8fc8e26e23
커밋
0a0a961c52
1개의 변경된 파일과 4개의 추가작업 그리고 2개의 파일을 삭제
|
@ -2700,8 +2700,10 @@ class Contact extends BaseObject
|
|||
*/
|
||||
public static function magicLinkByContact($contact, $url = '')
|
||||
{
|
||||
$destination = $url ?: $contact['url']; // Equivalent to ($url != '') ? $url : $contact['url'];
|
||||
|
||||
if ((!local_user() && !remote_user()) || ($contact['network'] != Protocol::DFRN)) {
|
||||
return $url ?: $contact['url']; // Equivalent to ($url != '') ? $url : $contact['url'];
|
||||
return $destination;
|
||||
}
|
||||
|
||||
// Only redirections to the same host do make sense
|
||||
|
@ -2714,7 +2716,7 @@ class Contact extends BaseObject
|
|||
}
|
||||
|
||||
if (empty($contact['id'])) {
|
||||
return $url ?: $contact['url'];
|
||||
return $destination;
|
||||
}
|
||||
|
||||
$redirect = 'redir/' . $contact['id'];
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue