1
0
Fork 0

Filter for account type for contacts

This commit is contained in:
Michael 2020-10-09 19:08:50 +00:00
commit 4b9cbac23e
7 changed files with 78 additions and 53 deletions

View file

@ -300,23 +300,7 @@ function network_content(App $a, $update = 0, $parent = 0)
$o = '';
}
switch ($a->argv[1] ?? '') {
case 'person':
$account = User::ACCOUNT_TYPE_PERSON;
break;
case 'organisation':
$account = User::ACCOUNT_TYPE_ORGANISATION;
break;
case 'news':
$account = User::ACCOUNT_TYPE_NEWS;
break;
case 'community':
$account = User::ACCOUNT_TYPE_COMMUNITY;
break;
default:
$account = null;
break;
}
$account = User::getAccountTypeByString($a->argv[1] ?? '');
if (!empty($_GET['file'])) {
$o .= networkFlatView($a, $update, $account);