fix: Links to attachments do not work in emailed notifications (#5935)
This commit is contained in:
@@ -29,6 +29,7 @@ function isAttachment(token: Token) {
|
||||
// external (public share are pre-signed and this is a reasonable way of detecting them)
|
||||
href?.startsWith("/api/attachments.redirect") ||
|
||||
href?.startsWith("/api/files.get") ||
|
||||
href?.startsWith(`${env.URL}/api/files.get`) ||
|
||||
((href?.startsWith(env.AWS_S3_UPLOAD_BUCKET_URL) ||
|
||||
href?.startsWith(env.AWS_S3_ACCELERATE_URL)) &&
|
||||
href?.includes("X-Amz-Signature"))
|
||||
|
||||
Reference in New Issue
Block a user