X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsuggest.php;h=f05c76cedae20573a43994f4836dc61b68713fc1;hb=a5e91175243a41c77a56e73efc3672f20a7e6d23;hp=e71c726952c582f5c24aefad147763b4bb3e6184;hpb=541d6ab8959fe3c069996e230def126c154da34d;p=friendica.git diff --git a/mod/suggest.php b/mod/suggest.php index e71c726952..f05c76ceda 100644 --- a/mod/suggest.php +++ b/mod/suggest.php @@ -1,10 +1,14 @@ page['aside'] .= follow_widget(); - $r = suggestion_query(local_user()); + $r = GlobalContact::suggestionQuery(local_user()); - if (! dbm::is_result($r)) { + if (! DBM::is_result($r)) { $o .= t('No suggestions available. If this is a new site, please try again in 24 hours.'); return $o; } @@ -84,7 +88,7 @@ function suggest_content(App $a) { 'hide' => array(t('Ignore/Hide'), $ignlnk) ); - $contact_details = get_contact_details_by_url($rr["url"], local_user(), $rr); + $contact_details = Contact::getDetailsByURL($rr["url"], local_user(), $rr); $entry = array( 'url' => zrl($rr['url']), @@ -95,7 +99,7 @@ function suggest_content(App $a) { 'details' => $contact_details['location'], 'tags' => $contact_details['keywords'], 'about' => $contact_details['about'], - 'account_type' => account_type($contact_details), + 'account_type' => Contact::getAccountType($contact_details), 'ignlnk' => $ignlnk, 'ignid' => $rr['id'], 'conntxt' => t('Connect'),