compatible with old configuration

This commit is contained in:
Mega Yu
2026-01-08 11:18:37 +08:00
parent 9409f5a39c
commit 64723542b2

View File

@@ -1273,7 +1273,7 @@
linked-relative (when (and linked-files zotero-asset? (seq @linked-files))
(let [value (first @linked-files)]
(swap! linked-files rest)
value))
(string/replace-first value "attachments:" "")))
linked-base (when (string? linked-relative)
(node-path/basename linked-relative))
linked-path (when (and (string? linked-relative)