Minor fixes from enterprise codebase

This commit is contained in:
Tom Moor
2023-02-12 16:31:15 -05:00
parent 33afa2f029
commit e028715afb
3 changed files with 14 additions and 0 deletions

View File

@@ -20,6 +20,10 @@ function isLinkClose(token: Token) {
function isAttachment(token: Token) {
const href = token.attrGet("href");
if (href?.includes("display=link")) {
return false;
}
return (
// internal
href?.startsWith("/api/attachments.redirect") ||