mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
try to fix avatars
This commit is contained in:
parent
a847879f81
commit
6f43321aba
@ -334,6 +334,7 @@ export default {
|
|||||||
;[...this.messages, ...Message].forEach((m) => {
|
;[...this.messages, ...Message].forEach((m) => {
|
||||||
if (m.senderId !== this.currentUser.id) m.seen = true
|
if (m.senderId !== this.currentUser.id) m.seen = true
|
||||||
m.date = new Date(m.date).toDateString()
|
m.date = new Date(m.date).toDateString()
|
||||||
|
m.avatar = this.$filters.proxyApiUrl(m.avatar)
|
||||||
msgs[m.indexId] = m
|
msgs[m.indexId] = m
|
||||||
})
|
})
|
||||||
this.messages = msgs.filter(Boolean)
|
this.messages = msgs.filter(Boolean)
|
||||||
@ -413,7 +414,7 @@ export default {
|
|||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
users: room.users.map((u) => {
|
users: room.users.map((u) => {
|
||||||
return { ...u, username: u.name, avatar: u.avatar?.url }
|
return { ...u, username: u.name, avatar: this.$filters.proxyApiUrl(u.avatar?.url) }
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
if (!fixedRoom.avatar) {
|
if (!fixedRoom.avatar) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user