1
0
Fork 0

Imrpoved avatar handling when storing them/partly use of "micro"

This commit is contained in:
Michael Vogel 2016-06-25 13:56:55 +02:00
commit 0b1188b7fe
8 changed files with 43 additions and 24 deletions

View file

@ -191,8 +191,8 @@ function ping_init(&$a) {
function xmlize($n){
$contact = get_contact_details_by_url($n['url']);
if (isset($contact["thumb"]))
$n['photo'] = proxy_url($contact["thumb"], false, PROXY_SIZE_MICRO);
if (isset($contact["micro"]))
$n['photo'] = proxy_url($contact["micro"], false, PROXY_SIZE_MICRO);
else
$n['photo'] = proxy_url($n['photo'], false, PROXY_SIZE_MICRO);