X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmatch.php;h=3b0367b4290e1efd02ccbd945eca34fb4e79bb4d;hb=fd8df4c4d6688e5ffd6bc78e14062aa064102715;hp=bbf1a6c6342fe42bf9e99b8df877146d382b292f;hpb=11a7eb8d8fd88bea174921ee2d2cfc63bfa82765;p=friendica.git diff --git a/mod/match.php b/mod/match.php index bbf1a6c634..3b0367b429 100644 --- a/mod/match.php +++ b/mod/match.php @@ -70,10 +70,16 @@ function match_content(&$a) { $photo_menu = array(array(t("View Profile"), zrl($jj->url))); $photo_menu[] = array(t("Connect/Follow"), $connlnk); + $contact_details = get_contact_details_by_url($jj->url, local_user()); + $entry = array( 'url' => zrl($jj->url), - 'itemurl' => $jj->url, + 'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $jj->url), 'name' => $jj->name, + 'details' => $contact_details['location'], + 'tags' => $contact_details['keywords'], + 'about' => $contact_details['about'], + 'account_type' => (($contact_details['community']) ? t('Forum') : ''), 'thumb' => proxy_url($jj->photo, false, PROXY_SIZE_THUMB), 'inttxt' => ' ' . t('is interested in:'), 'conntxt' => t('Connect'),