mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
The gcontact table will now be filled instead of the unique_contacts
This commit is contained in:
parent
5270552a08
commit
3b54203d80
5 changed files with 51 additions and 6 deletions
|
@ -908,6 +908,13 @@ function statusnet_fetch_contact($uid, $contact, $create_user) {
|
|||
if ($contact->statusnet_profile_url == "")
|
||||
return(-1);
|
||||
|
||||
if (function_exists("update_gcontact"))
|
||||
update_gcontact($contact->statusnet_profile_url,
|
||||
NETWORK_STATUSNET, $contact->profile_image_url,
|
||||
$contact->name, $contact->screen_name,
|
||||
$contact->location, $contact->description,
|
||||
statusnet_address($contact));
|
||||
|
||||
// Check if the unique contact is existing
|
||||
// To-Do: only update once a while
|
||||
$r = q("SELECT id FROM unique_contacts WHERE url='%s' LIMIT 1",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue