Pass imported-URL attachment URL to reader (#4820)

This commit is contained in:
Abe Jellinek 2024-11-06 15:05:39 -05:00 • committed by Dan Stillman
parent 7f26f246e7
commit 682cceca2d

View file

@ -563,7 +563,10 @@ class ReaderInstance {
throw new Error(`The file "${path}" is too large`);
}
return {
url: `zotero://attachment/${Zotero.API.getLibraryPrefix(item.libraryID)}/items/${item.key}/`
url: `zotero://attachment/${Zotero.API.getLibraryPrefix(item.libraryID)}/items/${item.key}/`,
importedFromURL: this._item.attachmentLinkMode === Zotero.Attachments.LINK_MODE_IMPORTED_URL
? this._item.getField('url')
: undefined,
};
}