diff options
author | fenn-cs <fenn25.fn@gmail.com> | 2024-04-22 20:41:24 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-04-29 01:12:30 +0200 |
commit | a51ab473da3e4b9a94dc9bb68d2cc9ae603bb4c6 (patch) | |
tree | cb6b8b989ff175a98643fbdb9b6def6abcc5ddcc | |
parent | b081d3ccccb741235858fb0515678ab45f79f623 (diff) | |
download | nextcloud-server-a51ab473da3e4b9a94dc9bb68d2cc9ae603bb4c6.tar.gz nextcloud-server-a51ab473da3e4b9a94dc9bb68d2cc9ae603bb4c6.zip |
fix(unifiedSearch): Prevent broken avatars for federated users
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
-rw-r--r-- | core/src/components/UnifiedSearch/SearchableList.vue | 6 | ||||
-rw-r--r-- | core/src/views/UnifiedSearchModal.vue | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/core/src/components/UnifiedSearch/SearchableList.vue b/core/src/components/UnifiedSearch/SearchableList.vue index 33f45d06266..04da2619b52 100644 --- a/core/src/components/UnifiedSearch/SearchableList.vue +++ b/core/src/components/UnifiedSearch/SearchableList.vue @@ -46,7 +46,11 @@ :wide="true" @click="itemSelected(element)"> <template #icon> - <NcAvatar :user="element.user" :show-user-status="false" :hide-favorite="false" /> + <NcAvatar v-if="element.isUser" :user="element.user" :show-user-status="false" /> + <NcAvatar v-else + :is-no-user="true" + :display-name="element.displayName" + :show-user-status="false" /> </template> {{ element.displayName }} </NcButton> diff --git a/core/src/views/UnifiedSearchModal.vue b/core/src/views/UnifiedSearchModal.vue index 365a7818509..7ee56ecb3bb 100644 --- a/core/src/views/UnifiedSearchModal.vue +++ b/core/src/views/UnifiedSearchModal.vue @@ -391,6 +391,7 @@ export default { subname: contact.emailAddresses[0] ? contact.emailAddresses[0] : '', icon: '', user: contact.id, + isUser: contact.isUser, } }) }, |