Added resize possibility to proxy function

This commit is contained in:
Michael Vogel 2015-10-07 08:25:10 +02:00
parent d7d1a09558
commit 1f0b759e2f
18 changed files with 77 additions and 49 deletions

View file

@ -545,7 +545,7 @@ function acl_lookup(&$a, $out_type = 'json') {
$x['data'] = array();
if(count($r)) {
foreach($r as $g) {
$x['photos'][] = proxy_url($g['micro']);
$x['photos'][] = proxy_url($g['micro'], false, PROXY_SIZE_MICRO);
$x['links'][] = $g['url'];
$x['suggestions'][] = $g['name'];
$x['data'][] = intval($g['id']);
@ -559,7 +559,7 @@ function acl_lookup(&$a, $out_type = 'json') {
foreach($r as $g){
$contacts[] = array(
"type" => "c",
"photo" => proxy_url($g['micro']),
"photo" => proxy_url($g['micro'], false, PROXY_SIZE_MICRO),
"name" => $g['name'],
"id" => intval($g['id']),
"network" => $g['network'],
@ -604,7 +604,7 @@ function acl_lookup(&$a, $out_type = 'json') {
// /nickname
$unknow_contacts[] = array(
"type" => "c",
"photo" => proxy_url($row['author-avatar']),
"photo" => proxy_url($row['author-avatar'], false, PROXY_SIZE_MICRO),
"name" => $row['author-name'],
"id" => '',
"network" => "unknown",