mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 18:38: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
|
@ -79,7 +79,6 @@ use Friendica\Core\Worker;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Conversation;
|
||||
use Friendica\Model\GContact;
|
||||
use Friendica\Model\Group;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\ItemContent;
|
||||
|
@ -1005,12 +1004,6 @@ function twitter_fetch_contact($uid, $data, $create_user)
|
|||
$url = "https://twitter.com/" . $data->screen_name;
|
||||
$addr = $data->screen_name . "@twitter.com";
|
||||
|
||||
GContact::update(["url" => $url, "network" => Protocol::TWITTER,
|
||||
"photo" => $avatar, "hide" => true,
|
||||
"name" => $data->name, "nick" => $data->screen_name,
|
||||
"location" => $data->location, "about" => $data->description,
|
||||
"addr" => $addr, "generation" => 2]);
|
||||
|
||||
$fields = ['url' => $url, 'network' => Protocol::TWITTER,
|
||||
'name' => $data->name, 'nick' => $data->screen_name, 'addr' => $addr,
|
||||
'location' => $data->location, 'about' => $data->description];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue