mirror of
https://github.com/friendica/friendica
synced 2025-04-25 14:30:10 +00:00
Filter for account type for contacts
This commit is contained in:
parent
ae6b380362
commit
4b9cbac23e
7 changed files with 78 additions and 53 deletions
|
@ -192,23 +192,7 @@ class Community extends BaseModule
|
|||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Access denied.'));
|
||||
}
|
||||
|
||||
switch ($parameters['accounttype'] ?? '') {
|
||||
case 'person':
|
||||
self::$accounttype = User::ACCOUNT_TYPE_PERSON;
|
||||
break;
|
||||
case 'organisation':
|
||||
self::$accounttype = User::ACCOUNT_TYPE_ORGANISATION;
|
||||
break;
|
||||
case 'news':
|
||||
self::$accounttype = User::ACCOUNT_TYPE_NEWS;
|
||||
break;
|
||||
case 'community':
|
||||
self::$accounttype = User::ACCOUNT_TYPE_COMMUNITY;
|
||||
break;
|
||||
default:
|
||||
self::$accounttype = null;
|
||||
break;
|
||||
}
|
||||
self::$accounttype = User::getAccountTypeByString($parameters['accounttype'] ?? '');
|
||||
|
||||
self::$content = $parameters['content'] ?? '';
|
||||
if (!self::$content) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue