mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +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
|
// 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
|
// need to be concerned about using the fast ASCII hash
|
||||||
// here, but the source domain instead.
|
if (hashes.add(hash.hashLowerBytes(linkText) ^ hash.hashLowerBytes(urlString))) {
|
||||||
return !hashes.add(hash.hashLowerBytes(linkText) ^ hash.hashLowerBytes(baseUrl.domain.toString()));
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user