mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 11:28: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
|
@ -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)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue