mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix 'm.avatar is null' error message
This commit is contained in:
parent
9c934c2a17
commit
2c123313ed
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user