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",
 | 
								msgtype: "m.image",
 | 
				
			||||||
			url: await file.uploadDiscordFileToMxc(attachment.url),
 | 
								url: await file.uploadDiscordFileToMxc(attachment.url),
 | 
				
			||||||
			external_url: attachment.url,
 | 
								external_url: attachment.url,
 | 
				
			||||||
			body: attachment.filename,
 | 
								body: attachment.description || attachment.filename,
 | 
				
			||||||
			filename: attachment.filename,
 | 
								filename: attachment.filename,
 | 
				
			||||||
			info: {
 | 
								info: {
 | 
				
			||||||
				mimetype: attachment.content_type,
 | 
									mimetype: attachment.content_type,
 | 
				
			||||||
| 
						 | 
					@ -174,7 +174,7 @@ async function attachmentToEvent(mentions, attachment) {
 | 
				
			||||||
			msgtype: "m.file",
 | 
								msgtype: "m.file",
 | 
				
			||||||
			url: await file.uploadDiscordFileToMxc(attachment.url),
 | 
								url: await file.uploadDiscordFileToMxc(attachment.url),
 | 
				
			||||||
			external_url: attachment.url,
 | 
								external_url: attachment.url,
 | 
				
			||||||
			body: attachment.filename,
 | 
								body: attachment.description || attachment.filename,
 | 
				
			||||||
			filename: attachment.filename,
 | 
								filename: attachment.filename,
 | 
				
			||||||
			info: {
 | 
								info: {
 | 
				
			||||||
				mimetype: attachment.content_type,
 | 
									mimetype: attachment.content_type,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue