The gcontact table will now be filled instead of the unique_contacts

This commit is contained in:
Michael Vogel 2016-01-05 15:35:49 +01:00
parent 5270552a08
commit 3b54203d80
5 changed files with 51 additions and 6 deletions

View file

@ -944,6 +944,13 @@ function pumpio_dolike(&$a, $uid, $self, $post, $own_id, $threadcompletion = tru
function pumpio_get_contact($uid, $contact) {
if (function_exists("update_gcontact"))
update_gcontact($contact->url,
NETWORK_PUMPIO, $contact->image->url,
$contact->displayName, $contact->preferredUsername,
$contact->location->displayName, $contact->summary,
str_replace("acct:", "", $contact->id));
$r = q("SELECT id FROM unique_contacts WHERE url='%s' LIMIT 1",
dbesc(normalise_link($contact->url)));