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

@ -1097,6 +1097,14 @@ function appnet_expand_annotations($a, $annotations) {
function appnet_fetchcontact($a, $uid, $contact, $me, $create_user) {
if (function_exists("update_gcontact"))
update_gcontact($contact["canonical_url"],
NETWORK_APPNET, $contact["avatar_image"]["url"],
$contact["name"], $contact["username"],
"", $contact["description"]["text"],
$contact["username"]."@app.net");
// Old Code
$r = q("SELECT id FROM unique_contacts WHERE url='%s' LIMIT 1",
dbesc(normalise_link($contact["canonical_url"])));