don't subdue archived connections in viewconnections
This commit is contained in:
parent
98e85917bb
commit
de97073e13
@ -712,7 +712,7 @@ function contact_block() {
|
||||
$abook_flags = ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF;
|
||||
$xchan_flags = XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED;
|
||||
if(! $is_owner) {
|
||||
$abook_flags = $abook_flags | ABOOK_FLAGS_HIDDEN;
|
||||
$abook_flags = $abook_flags | ABOOK_FLAG_HIDDEN;
|
||||
$xchan_flags = $xchan_flags | XCHAN_FLAGS_HIDDEN;
|
||||
}
|
||||
|
||||
@ -734,7 +734,7 @@ function contact_block() {
|
||||
|
||||
$r = q("SELECT abook.*, xchan.* FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash WHERE abook_channel = %d AND not ( abook_flags & %d) and not (xchan_flags & %d ) ORDER BY RAND() LIMIT %d",
|
||||
intval($a->profile['uid']),
|
||||
intval($abook_flags|ABOOK_FLAGS_ARCHIVED),
|
||||
intval($abook_flags|ABOOK_FLAG_ARCHIVED),
|
||||
intval($xchan_flags),
|
||||
intval($shown)
|
||||
);
|
||||
@ -743,6 +743,7 @@ function contact_block() {
|
||||
$contacts = sprintf( tt('%d Connection','%d Connections', $total),$total);
|
||||
$micropro = Array();
|
||||
foreach($r as $rr) {
|
||||
$rr['archived'] = (($rr['abook_flags'] & ABOOK_FLAG_ARCHIVED) ? true : false);
|
||||
$micropro[] = micropro($rr,true,'mpfriend');
|
||||
}
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ function viewconnections_content(&$a) {
|
||||
$abook_flags = ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF;
|
||||
$xchan_flags = XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED;
|
||||
if(! $is_owner) {
|
||||
$abook_flags = $abook_flags | ABOOK_FLAGS_HIDDEN;
|
||||
$abook_flags = $abook_flags | ABOOK_FLAG_HIDDEN;
|
||||
$xchan_flags = $xchan_flags | XCHAN_FLAGS_HIDDEN;
|
||||
}
|
||||
|
||||
@ -67,6 +67,7 @@ function viewconnections_content(&$a) {
|
||||
if($url) {
|
||||
$contacts[] = array(
|
||||
'id' => $rr['abook_id'],
|
||||
'archived' => (($rr['abook_flags'] & ABOOK_FLAG_ARCHIVED) ? true : false),
|
||||
'img_hover' => sprintf( t('Visit %s\'s profile [%s]'), $rr['xchan_name'], $rr['xchan_url']),
|
||||
'thumb' => $rr['xchan_photo_m'],
|
||||
'name' => substr($rr['xchan_name'],0,20),
|
||||
|
Reference in New Issue
Block a user