mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-04-05 17:15:40 +00:00
remove file extension as it triggers markdown rendering and requesting the url -> 404
This commit is contained in:
parent
ec9c8a689c
commit
142d17bfa7
@ -314,9 +314,7 @@ export default {
|
||||
if (text) return text.substring(0, 30)
|
||||
if (!files?.length) return ''
|
||||
if (files[0].type?.startsWith('audio/') || files[0].audio) return ''
|
||||
const f = files[0]
|
||||
const name = f.extension ? `${f.name}.${f.extension}` : f.name || ''
|
||||
return `\uD83D\uDCCE ${name}`
|
||||
return `\uD83D\uDCCE ${files[0].name || ''}`
|
||||
},
|
||||
|
||||
markAsSeen(messageIds) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user