mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
conditional url replacement
This commit is contained in:
parent
b591820eb6
commit
5c1ab88012
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user