- 'photo' => ProxyUtils::proxifyUrl($g['photo'], false, ProxyUtils::SIZE_MICRO),
- 'name' => htmlspecialchars($g['name']),
- 'nick' => $g['addr'] ?: $g['url'],
- 'network' => $g['network'],
- 'link' => $g['url'],
- 'forum' => !empty($g['community']) ? 1 : 0,
+ 'photo' => Contact::getMicro($contact),
+ 'name' => htmlspecialchars($contact['name']),
+ 'nick' => $contact['addr'] ?: $contact['url'],
+ 'network' => $contact['network'],
+ 'link' => $contact['url'],
+ 'forum' => $contact['contact-type'] == Contact::TYPE_COMMUNITY,