there is currently no avatar for groups, no need to ask server about it

This commit is contained in:
ralf 2022-09-24 14:44:42 +02:00
parent 9ab4c69050
commit 84d65bcf3b

View File

@ -441,11 +441,12 @@ class Accounts
$accounts[] = [ $accounts[] = [
'value' => $account['account_id'], 'value' => $account['account_id'],
'label' => $displayName, 'label' => $displayName,
]+($account['account_id'] <= 0 ? [] : [ // there is currently no avatar for groups, no need to ask server about it
'icon' => Framework::link('/api/avatar.php', [ 'icon' => Framework::link('/api/avatar.php', [
'account_id' => $account['account_id'], 'account_id' => $account['account_id'],
'modified' => $account['account_modified'], 'modified' => $account['account_modified'],
]), ]),
]; ]);
} }
else else
{ {