From 33e30d9a0b3da5497c9c96ee78ad2d533124e5a7 Mon Sep 17 00:00:00 2001 From: Erik Demaine Date: Mon, 12 Aug 2024 17:07:13 -0400 Subject: [PATCH] Fix embedding of historical images (internal files) --- CHANGELOG.md | 4 ++++ lib/formats.coffee | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c633ea..73db6b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ To see every change with descriptions aimed at developers, see As a continuously updated web app, Coauthor uses dates instead of version numbers. +## 2024-08-12 + +* Fix embedding of historical images (internal files) + ## 2024-07-10 * Security fix for pdfjs, fixing [vulnerability to malicious PDF](https://github.com/advisories/GHSA-wgrm-67xf-hhpq) diff --git a/lib/formats.coffee b/lib/formats.coffee index 2b624c0..6f049e4 100644 --- a/lib/formats.coffee +++ b/lib/formats.coffee @@ -782,8 +782,9 @@ postprocessCoauthorLinks = (text, msgId) -> return match unless fileMsg? {attrs, prefix} = imageTitleAndWarning fileMsg, msgId fileId = fileMsg.file - else + else # if isInternalFile fileId = url2internalFile url + attrs = prefix = '' file = findFile fileId return match unless file? prefix +