mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Don't store non federated contacts in gcontact
This commit is contained in:
parent
5a68dc76d7
commit
a5c3ef99ef
3 changed files with 0 additions and 33 deletions
|
@ -51,7 +51,6 @@ use Friendica\Core\Renderer;
|
|||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\GContact;
|
||||
use Friendica\Model\Group;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\ItemContent;
|
||||
|
@ -945,12 +944,6 @@ function statusnet_fetch_contact($uid, $contact, $create_user)
|
|||
return -1;
|
||||
}
|
||||
|
||||
GContact::update(["url" => $contact->statusnet_profile_url,
|
||||
"network" => Protocol::STATUSNET, "photo" => $contact->profile_image_url,
|
||||
"name" => $contact->name, "nick" => $contact->screen_name,
|
||||
"location" => $contact->location, "about" => $contact->description,
|
||||
"addr" => statusnet_address($contact), "generation" => 3]);
|
||||
|
||||
$r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `alias` = '%s' AND `network` = '%s'LIMIT 1", intval($uid), DBA::escape(Strings::normaliseLink($contact->statusnet_profile_url)), DBA::escape(Protocol::STATUSNET));
|
||||
|
||||
if (!DBA::isResult($r) && !$create_user) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue