Revert "(experiment) Modify atags exporter to permit duplicates from different source domains"

This reverts commit 5c858a2b94.
This commit is contained in:
Viktor Lofgren 2024-12-07 14:01:50 +01:00
parent 5c858a2b94
commit ee2d5496d0

View File

@ -155,9 +155,12 @@ public class AtagExporter implements ExporterIf {
}
// Deduplicate by hash; we've already checked that the strings are ASCII printable so we don't
// need to be concerned about using the fast ASCII hash. Note we don't consider the destination URL
// here, but the source domain instead.
return !hashes.add(hash.hashLowerBytes(linkText) ^ hash.hashLowerBytes(baseUrl.domain.toString()));
// need to be concerned about using the fast ASCII hash
if (hashes.add(hash.hashLowerBytes(linkText) ^ hash.hashLowerBytes(urlString))) {
return false;
}
return true;
}
}