Don't add /download to URL in Attachment Actions

This commit is contained in:
Declan Chidlow 2024-12-27 15:36:15 +08:00 committed by GitHub
parent ac2beaf549
commit 5f3b5600b4
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@ export default function AttachmentActions({ attachment }: Props) {
const url = client.generateFileURL(attachment);
const open_url = `${url}/${filename}`;
const download_url = url?.replace("attachments", "attachments/download");
const download_url = url;
const filesize = determineFileSize(size);