]> git.mxchange.org Git - friendica-addons.git/commitdiff
Review updates
authorAdam Magness <adam.magness@gmail.com>
Mon, 13 Nov 2017 06:52:26 +0000 (01:52 -0500)
committerAdam Magness <adam.magness@gmail.com>
Mon, 13 Nov 2017 06:52:26 +0000 (01:52 -0500)
changes from review for function name changes.

pumpio/pumpio.php
statusnet/statusnet.php
twitter/twitter.php

index 11d0e190be308555c45de974498a0cb2c0f2c877..a59d761981c1873ff5bd04b21165086feddc313d 100644 (file)
@@ -968,7 +968,7 @@ function pumpio_dolike(&$a, $uid, $self, $post, $own_id, $threadcompletion = tru
 
 function pumpio_get_contact($uid, $contact, $no_insert = false) {
 
-       GContact::updateGContact(array("url" => $contact->url, "network" => NETWORK_PUMPIO, "generation" => 2,
+       GContact::update(array("url" => $contact->url, "network" => NETWORK_PUMPIO, "generation" => 2,
                        "photo" => $contact->image->url, "name" => $contact->displayName,  "hide" => true,
                        "nick" => $contact->preferredUsername, "location" => $contact->location->displayName,
                        "about" => $contact->summary, "addr" => str_replace("acct:", "", $contact->id)));
index a482645bb54a06d622ddb8a3de50dfd4fb611fcc..bc0f314377a6a345f2a337b1c7bb71ef0d1ea8dc 100644 (file)
@@ -929,7 +929,7 @@ function statusnet_fetch_contact($uid, $contact, $create_user) {
        if ($contact->statusnet_profile_url == "")
                return(-1);
 
-       GContact::updateGContact(array("url" => $contact->statusnet_profile_url,
+       GContact::update(array("url" => $contact->statusnet_profile_url,
                        "network" => NETWORK_STATUSNET, "photo" => $contact->profile_image_url,
                        "name" => $contact->name, "nick" => $contact->screen_name,
                        "location" => $contact->location, "about" => $contact->description,
index bd2c627a8d5c3adfc7a0676a18223ba27a675522..a4017562b84ff2f073c593a9a6e5af54fa8c664c 100644 (file)
@@ -956,7 +956,7 @@ function twitter_fetch_contact($uid, $contact, $create_user) {
 
        $avatar = twitter_fix_avatar($contact->profile_image_url_https);
 
-       GContact::updateGContact(array("url" => "https://twitter.com/".$contact->screen_name,
+       GContact::update(array("url" => "https://twitter.com/".$contact->screen_name,
                        "network" => NETWORK_TWITTER, "photo" => $avatar,  "hide" => true,
                        "name" => $contact->name, "nick" => $contact->screen_name,
                        "location" => $contact->location, "about" => $contact->description,