mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
Revert "(experiment) Modify atags exporter to permit duplicates from different source domains"
This reverts commit 5c858a2b94
.
This commit is contained in:
parent
5c858a2b94
commit
ee2d5496d0
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user