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
parent 935c67bc01
commit 59ba212cf8

View file

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