Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 6669-fix-having-wrong-chat-font-as-default-in-network

This commit is contained in:
Wolfgang Huß 2023-08-11 12:34:42 +02:00
commit d345bf0bba

View File

@ -334,7 +334,7 @@ export default {
;[...this.messages, ...Message].forEach((m) => {
if (m.senderId !== this.currentUser.id) m.seen = true
m.date = new Date(m.date).toDateString()
if (!m.avatar.startsWith('/api/')) {
if (!m.avatar?.startsWith('/api/')) {
m.avatar = this.$filters.proxyApiUrl(m.avatar)
}
msgs[m.indexId] = m