feat: add image conversion and resizing via query params in channel attachment view

This commit is contained in:
BordedDev
2025-05-11 23:47:54 +00:00
parent 5254593b0d
commit 414cce6c71
7 changed files with 149 additions and 42 deletions
+1 -1
View File
@@ -49,7 +49,7 @@
})
document.querySelector("upload-button").addEventListener("uploaded",function(e){
e.detail.files.forEach((file)=>{
app.rpc.sendMessage(channelUid,`![${file.name}](/channel/attachment/${file.relative_url})`)
app.rpc.sendMessage(channelUid,`[${file.name}](/channel/attachment/${file.relative_url})`)
})
})
textBox.addEventListener("paste", async (e) => {