From 4899483d3013d4e2ccffcd3a2b9dd99a880bb95b Mon Sep 17 00:00:00 2001 From: Northword <44738481+northword@users.noreply.github.com> Date: Fri, 6 Feb 2026 16:00:40 +0800 Subject: [PATCH] Reduce the judgment threshold for checking duplicate items by year --- chrome/content/zotero/xpcom/duplicates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/duplicates.js b/chrome/content/zotero/xpcom/duplicates.js index 56f4812a8e..adba06f567 100644 --- a/chrome/content/zotero/xpcom/duplicates.js +++ b/chrome/content/zotero/xpcom/duplicates.js @@ -359,7 +359,7 @@ Zotero.Duplicates.prototype._findDuplicates = async function () { // If both items have a year and they're off by more than one, it's not a dupe if (typeof yearCache[a.itemID] != 'undefined' && typeof yearCache[b.itemID] != 'undefined' - && Math.abs(yearCache[a.itemID] - yearCache[b.itemID]) > 1) { + && Math.abs(yearCache[a.itemID] - yearCache[b.itemID]) >= 1) { return 0; }