From 75c7b2eb6d73850648690963041d02a63dea410e Mon Sep 17 00:00:00 2001 From: Declan Chidlow <84255570+DeclanChidlow@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:37:24 +0800 Subject: [PATCH] Don't add /download to url from attachment context menu --- src/lib/ContextMenus.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/ContextMenus.tsx b/src/lib/ContextMenus.tsx index 55c2dbb7..0999b38d 100644 --- a/src/lib/ContextMenus.tsx +++ b/src/lib/ContextMenus.tsx @@ -288,11 +288,7 @@ export default function ContextMenus() { window.open( // ! FIXME: do this from revolt.js client - .generateFileURL(data.attachment) - ?.replace( - "attachments", - "attachments/download", - ), + .generateFileURL(data.attachment), isFirefox || window.native ? "_blank" : "_self", ); } @@ -1293,4 +1289,4 @@ export default function ContextMenus() { ); -} \ No newline at end of file +}