superblock enhancements
This commit is contained in:
parent
fc62d7e577
commit
efb6842d74
@ -333,6 +333,7 @@ function notification($params) {
|
|||||||
|
|
||||||
$datarray = array();
|
$datarray = array();
|
||||||
$datarray['hash'] = $hash;
|
$datarray['hash'] = $hash;
|
||||||
|
$datarray['sender_hash'] = $sender['xchan_hash'];
|
||||||
$datarray['name'] = $sender['xchan_name'];
|
$datarray['name'] = $sender['xchan_name'];
|
||||||
$datarray['url'] = $sender['xchan_url'];
|
$datarray['url'] = $sender['xchan_url'];
|
||||||
$datarray['photo'] = $sender['xchan_photo_s'];
|
$datarray['photo'] = $sender['xchan_photo_s'];
|
||||||
|
@ -274,17 +274,21 @@ function directory_content(&$a) {
|
|||||||
$arr = array('contact' => $rr, 'entry' => $entry);
|
$arr = array('contact' => $rr, 'entry' => $entry);
|
||||||
|
|
||||||
call_hooks('directory_item', $arr);
|
call_hooks('directory_item', $arr);
|
||||||
|
|
||||||
if($sort_order == '' && $suggest) {
|
|
||||||
$entries[$addresses[$rr['address']]] = $arr['entry']; // Use the same indexes as originally to get the best suggestion first
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$entries[] = $arr['entry'];
|
|
||||||
}
|
|
||||||
unset($profile);
|
unset($profile);
|
||||||
unset($location);
|
unset($location);
|
||||||
|
|
||||||
|
if(! $arr['entry']) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if($sort_order == '' && $suggest) {
|
||||||
|
$entries[$addresses[$rr['address']]] = $arr['entry']; // Use the same indexes as originally to get the best suggestion first
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
$entries[] = $arr['entry'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ksort($entries); // Sort array by key so that foreach-constructs work as expected
|
ksort($entries); // Sort array by key so that foreach-constructs work as expected
|
||||||
|
Reference in New Issue
Block a user