Skip to content

Commit

Permalink
conditional url replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Aug 8, 2023
1 parent b591820 commit 5c1ab88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/components/Chat/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ export default {
;[...this.messages, ...Message].forEach((m) => {
if (m.senderId !== this.currentUser.id) m.seen = true
m.date = new Date(m.date).toDateString()
m.avatar = this.$filters.proxyApiUrl(m.avatar)
if(!m.avatar.startsWith('/api/')){
m.avatar = this.$filters.proxyApiUrl(m.avatar)
}
msgs[m.indexId] = m
})
this.messages = msgs.filter(Boolean)
Expand Down

0 comments on commit 5c1ab88

Please # to comment.