From 84d65bcf3b1455d2fd516cba1351a39649df7059 Mon Sep 17 00:00:00 2001 From: ralf Date: Sat, 24 Sep 2022 14:44:42 +0200 Subject: [PATCH] there is currently no avatar for groups, no need to ask server about it --- api/src/Accounts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/Accounts.php b/api/src/Accounts.php index fa0215a3d8..de217e2c8d 100644 --- a/api/src/Accounts.php +++ b/api/src/Accounts.php @@ -441,11 +441,12 @@ class Accounts $accounts[] = [ 'value' => $account['account_id'], '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', [ 'account_id' => $account['account_id'], 'modified' => $account['account_modified'], ]), - ]; + ]); } else {