Compare commits
2 commits
88db066ee0
...
176cbcaf3a
Author | SHA1 | Date | |
---|---|---|---|
176cbcaf3a | |||
fecae6564b |
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue