Don't add /download to url from attachment context menu

This commit is contained in:
Declan Chidlow 2024-12-27 15:37:24 +08:00 committed by GitHub
parent 5f3b5600b4
commit 75c7b2eb6d
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

@ -288,11 +288,7 @@ export default function ContextMenus() {
window.open( window.open(
// ! FIXME: do this from revolt.js // ! FIXME: do this from revolt.js
client client
.generateFileURL(data.attachment) .generateFileURL(data.attachment),
?.replace(
"attachments",
"attachments/download",
),
isFirefox || window.native ? "_blank" : "_self", isFirefox || window.native ? "_blank" : "_self",
); );
} }
@ -1293,4 +1289,4 @@ export default function ContextMenus() {
<CMNotifications /> <CMNotifications />
</> </>
); );
} }