use Friendica\Database\DBA;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
+use Friendica\Util\Proxy as ProxyUtils;
function suggest_init(App $a) {
if (! local_user()) {
}
-function suggest_content(App $a) {
-
- require_once("mod/proxy.php");
-
+function suggest_content(App $a)
+{
$o = '';
+
if (! local_user()) {
notice(L10n::t('Permission denied.') . EOL);
return;
'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']),
'img_hover' => $rr['url'],
'name' => $contact_details['name'],
- 'thumb' => proxy_url($contact_details['thumb'], false, PROXY_SIZE_THUMB),
+ 'thumb' => ProxyUtils::proxifyUrl($contact_details['thumb'], false, ProxyUtils::SIZE_THUMB),
'details' => $contact_details['location'],
'tags' => $contact_details['keywords'],
'about' => $contact_details['about'],