d->m: Alt text should be bridged for any file type
This commit is contained in:
parent
83070dcf7e
commit
60cf40680f
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ async function attachmentToEvent(mentions, attachment) {
|
|||
msgtype: "m.image",
|
||||
url: await file.uploadDiscordFileToMxc(attachment.url),
|
||||
external_url: attachment.url,
|
||||
body: attachment.filename,
|
||||
body: attachment.description || attachment.filename,
|
||||
filename: attachment.filename,
|
||||
info: {
|
||||
mimetype: attachment.content_type,
|
||||
|
@ -174,7 +174,7 @@ async function attachmentToEvent(mentions, attachment) {
|
|||
msgtype: "m.file",
|
||||
url: await file.uploadDiscordFileToMxc(attachment.url),
|
||||
external_url: attachment.url,
|
||||
body: attachment.filename,
|
||||
body: attachment.description || attachment.filename,
|
||||
filename: attachment.filename,
|
||||
info: {
|
||||
mimetype: attachment.content_type,
|
||||
|
|
Loading…
Reference in a new issue