의 미러
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02:00
Bugfix - the remote user also has magicLinks again
This commit is contained in:
부모
f51918e9e9
커밋
67a8f9dbd4
1개의 변경된 파일과 3개의 추가작업 그리고 3개의 파일을 삭제
|
@ -2072,7 +2072,7 @@ class Contact extends BaseObject
|
|||
*/
|
||||
public static function magicLink($contact_url, $url = '')
|
||||
{
|
||||
if (!local_user()) {
|
||||
if (!local_user() && remote_user()) {
|
||||
return $url ?: $contact_url; // Equivalent to: ($url != '') ? $url : $contact_url;
|
||||
}
|
||||
|
||||
|
@ -2097,7 +2097,7 @@ class Contact extends BaseObject
|
|||
$contact = DBA::selectFirst('contact', ['id', 'network', 'url', 'uid'], ['id' => $cid]);
|
||||
|
||||
return self::magicLinkbyContact($contact, $url);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns a magic link to authenticate remote visitors
|
||||
|
@ -2109,7 +2109,7 @@ class Contact extends BaseObject
|
|||
*/
|
||||
public static function magicLinkbyContact($contact, $url = '')
|
||||
{
|
||||
if (!local_user() || ($contact['network'] != Protocol::DFRN)) {
|
||||
if ((!local_user() && !remote_user()) || ($contact['network'] != Protocol::DFRN)) {
|
||||
return $url ?: $contact['url']; // Equivalent to ($url != '') ? $url : $contact['url'];
|
||||
}
|
||||
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue