]> git.mxchange.org Git - friendica.git/blobdiff - mod/match.php
Fetch photo fields, ensuring that they are filled
[friendica.git] / mod / match.php
index b7a9d3a5672bbea35b6d9db1d5fec81dd7f3cf90..f50a454ba9da919c05bbd578fe16ecbff70f387d 100644 (file)
@@ -27,8 +27,6 @@ use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\Contact;
 use Friendica\Model\Profile;
-use Friendica\Util\Network;
-use Friendica\Util\Proxy as ProxyUtils;
 
 /**
  * Controller for /match.
@@ -76,7 +74,7 @@ function match_content(App $a)
                $host = DI::baseUrl();
        }
 
-       $msearch_json = Network::post($host . '/msearch', $params)->getBody();
+       $msearch_json = DI::httpRequest()->post($host . '/msearch', $params)->getBody();
 
        $msearch = json_decode($msearch_json);
 
@@ -112,7 +110,7 @@ function match_content(App $a)
                                'tags'         => $contact_details['keywords'] ?? '',
                                'about'        => $contact_details['about'] ?? '',
                                'account_type' => Contact::getAccountType($contact_details),
-                               'thumb'        => ProxyUtils::proxifyUrl($profile->photo, false, ProxyUtils::SIZE_THUMB),
+                               'thumb'        => Contact::getThumb($contact_details, $profile->photo),
                                'conntxt'      => DI::l10n()->t('Connect'),
                                'connlnk'      => $connlnk,
                                'img_hover'    => $profile->tags,