aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-16 22:21:29 -0700
committerfriendica <info@friendica.com>2014-07-16 22:21:29 -0700
commit98e85917bb0c12765f5ca42c49c0e64a348952ea (patch)
tree2c998bd63b8db10359b2dbb778c4fc3b89bb76d7 /mod
parentfeb23fc9bcf2b942d03931cc18728427cb43f4a3 (diff)
downloadvolse-hubzilla-98e85917bb0c12765f5ca42c49c0e64a348952ea.tar.gz
volse-hubzilla-98e85917bb0c12765f5ca42c49c0e64a348952ea.tar.bz2
volse-hubzilla-98e85917bb0c12765f5ca42c49c0e64a348952ea.zip
subdue archived connections in group editor and don't show at all in contact_block()
Diffstat (limited to 'mod')
-rw-r--r--mod/group.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/group.php b/mod/group.php
index d9bbec78b..0f265f6fb 100644
--- a/mod/group.php
+++ b/mod/group.php
@@ -203,6 +203,7 @@ function group_content(&$a) {
$textmode = (($switchtotext && (count($members) > $switchtotext)) ? true : false);
foreach($members as $member) {
if($member['xchan_url']) {
+ $member['archived'] = (($member['abook_flags'] & ABOOK_FLAG_ARCHIVED) ? true : false);
$member['click'] = 'groupChangeMember(' . $group['id'] . ',\'' . $member['xchan_hash'] . '\',\'' . $sec_token . '\'); return false;';
$groupeditor['members'][] = micropro($member,true,'mpgroup', $textmode);
}
@@ -221,6 +222,7 @@ function group_content(&$a) {
$textmode = (($switchtotext && (count($r) > $switchtotext)) ? true : false);
foreach($r as $member) {
if(! in_array($member['xchan_hash'],$preselected)) {
+ $member['archived'] = (($member['abook_flags'] & ABOOK_FLAG_ARCHIVED) ? true : false);
$member['click'] = 'groupChangeMember(' . $group['id'] . ',\'' . $member['xchan_hash'] . '\',\'' . $sec_token . '\'); return false;';
$groupeditor['contacts'][] = micropro($member,true,'mpall', $textmode);
}