의 미러
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02:00
Follow up to #7582: Only update the contact when needed
This commit is contained in:
부모
0c876db30f
커밋
74f12baac2
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
|
@ -904,7 +904,7 @@ class Contact extends BaseObject
|
|||
public static function unmarkForArchival(array $contact)
|
||||
{
|
||||
// Always unarchive the relay contact entry
|
||||
if (!empty($contact['batch'])) {
|
||||
if (!empty($contact['batch']) && !empty($contact['term-date']) && ($contact['term-date'] > DBA::NULL_DATETIME)) {
|
||||
$fields = ['term-date' => DBA::NULL_DATETIME, 'archive' => false];
|
||||
$condition = ['batch' => $contact['batch'], 'contact-type' => self::TYPE_RELAY];
|
||||
DBA::update('contact', $fields, $condition);
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue