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
|
@ -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"])));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue