의 미러
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02:00
Ensure that an existing contact isn't archived or pending
This commit is contained in:
부모
6c34196264
커밋
b1222e174e
1개의 변경된 파일과 4개의 추가작업 그리고 1개의 파일을 삭제
|
@ -2105,11 +2105,14 @@ class Contact extends BaseObject
|
|||
$network = $pub_contact['network'];
|
||||
|
||||
if (is_array($contact)) {
|
||||
// Make sure that the existing contact isn't archived
|
||||
self::unmarkForArchival($contact);
|
||||
|
||||
$protocol = self::getProtocol($url, $contact['network']);
|
||||
|
||||
if (($contact['rel'] == self::SHARING)
|
||||
|| ($sharing && $contact['rel'] == self::FOLLOWER)) {
|
||||
DBA::update('contact', ['rel' => self::FRIEND, 'writable' => true],
|
||||
DBA::update('contact', ['rel' => self::FRIEND, 'writable' => true, 'pending' => false],
|
||||
['id' => $contact['id'], 'uid' => $importer['uid']]);
|
||||
}
|
||||
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue