Compare commits

..

2 commits

View file

@ -1735,6 +1735,7 @@ function bluesky_get_contact(stdClass $author, int $uid, int $fetch_uid): array
$cid = Contact::insert($public_fields);
} else {
$cid = $contact['id'];
Logger::debug('Update contact', ['fields' => $public_fields, 'id' => $cid]);
Contact::update($public_fields, ['id' => $cid], true);
}
@ -1754,6 +1755,7 @@ function bluesky_get_contact(stdClass $author, int $uid, int $fetch_uid): array
$cid = Contact::insert($fields);
} else {
$cid = $contact['id'];
Logger::debug('Update contact', ['fields' => $fields, 'id' => $cid]);
Contact::update($fields, ['id' => $cid], true);
}
Logger::debug('Get user contact', ['id' => $cid, 'uid' => $uid, 'update' => $update]);
@ -1788,7 +1790,7 @@ function bluesky_get_contact_fields(stdClass $author, int $uid, int $fetch_uid,
];
if (!$update) {
Logger::debug('Got contact fields', ['uid' => $uid, 'url' => $fields['url']]);
Logger::debug('Got contact fields', ['uid' => $uid, 'url' => $fields['url'], 'fields' => $fields]);
return $fields;
}