]> git.mxchange.org Git - friendica.git/blobdiff - include/api.php
Change called method names
[friendica.git] / include / api.php
index 7303524232cc0fa1110d45554832e2b3d0a600ef..2cfdcf0241d1f12563e9c67b53d8018fc53e76f5 100644 (file)
@@ -650,7 +650,7 @@ function api_get_user(App $a, $contact_id = null, $type = "json")
                                'notifications' => false,
                                'statusnet_profile_url' => $r[0]["url"],
                                'uid' => 0,
-                               'cid' => get_contact($r[0]["url"], api_user(), true),
+                               'cid' => Contact::getIdForURL($r[0]["url"], api_user(), true),
                                'self' => 0,
                                'network' => $r[0]["network"],
                        );
@@ -738,7 +738,7 @@ function api_get_user(App $a, $contact_id = null, $type = "json")
 
        $network_name = network_to_name($uinfo[0]['network'], $uinfo[0]['url']);
 
-       $pcontact_id  = get_contact($uinfo[0]['url'], 0, true);
+       $pcontact_id  = Contact::getIdForURL($uinfo[0]['url'], 0, true);
 
        $ret = array(
                'id' => intval($pcontact_id),