function _contact_link($i){ return dbesc($i['link']); }
$known_contacts = array_map(_contact_link, $contacts);
$unknow_contacts=array();
- $r = q("SELECT `author-avatar`,`author-name`,`author-link`
+ $r = q("SELECT `author-avatar`,`author-name`,`author-link`, `network`
FROM `item` WHERE `parent` = %d
AND (`author-name` LIKE '%%%s%%' OR `author-link` LIKE '%%%s%%')
AND `author-link` NOT IN ('%s')
'photo' => proxy_url($row['author-avatar'], false, PROXY_SIZE_MICRO),
'name' => htmlentities($row['author-name']),
'id' => '',
- 'network' => 'unknown',
+ 'network' => $row['network'],
'link' => $row['author-link'],
'nick' => htmlentities($nick),
'forum' => false