indexExtensions: ensure kind 6 has reply:false to test the performance difference between -reply:true

This commit is contained in:
Alex Gleason 2025-02-06 11:24:49 -06:00
parent f412a0ae50
commit c2aab97018
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -68,7 +68,13 @@ class EventsDB extends NPostgres {
if (event.kind === 1) {
ext.reply = event.tags.some(([name]) => name === 'e').toString();
} else if (event.kind === 1111) {
ext.reply = event.tags.some(([name]) => ['e', 'E'].includes(name)).toString();
} else if (event.kind === 6) {
ext.reply = 'false';
}
if ([1, 20, 30023].includes(event.kind)) {
const language = detectLanguage(event.content, 0.90);
if (language) {