Use referrer from connector when saving snapshots

Closes #3006
This commit is contained in:
Adomas Venčkauskas 2023-02-28 13:37:33 +02:00 committed by Dan Stillman
parent c048460c22
commit b4d534c02d

View file

@ -1174,6 +1174,7 @@ Zotero.Server.Connector.SaveSnapshot.prototype = {
let item = await Zotero.Attachments.importFromURL({
libraryID,
url: data.url,
referrer: data.referrer,
collections: collection ? [collection.id] : undefined,
contentType: "application/pdf",
cookieSandbox
@ -1232,6 +1233,7 @@ Zotero.Server.Connector.SaveSnapshot.prototype = {
await Zotero.Attachments.importFromURL({
libraryID,
url: data.url,
referrer: data.referrer,
title,
parentItemID: itemID,
contentType: "text/html",