Speed up the contact search, proxy the images, search for addresses

This commit is contained in:
Michael Vogel 2016-04-16 15:01:03 +02:00
parent bbd5878734
commit f8c96d24b4
3 changed files with 12 additions and 11 deletions

View file

@ -556,7 +556,7 @@ function acl_lookup(&$a, $out_type = 'json') {
if($r) {
foreach($r as $g) {
$contacts[] = array(
"photo" => $g['photo'],
"photo" => proxy_url($g['photo'], false, PROXY_SIZE_MICRO),
"name" => $g['name'],
"nick" => (x($g['addr']) ? $g['addr'] : $g['url']),
"network" => $g['network'],