Skip to content

Commit

Permalink
Don't add /download to url from attachment context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
DeclanChidlow authored Dec 27, 2024
1 parent 5f3b560 commit 75c7b2e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lib/ContextMenus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
);
}
Expand Down Expand Up @@ -1293,4 +1289,4 @@ export default function ContextMenus() {
<CMNotifications />
</>
);
}
}

0 comments on commit 75c7b2e

Please sign in to comment.