mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
indexExtensions: ensure kind 6 has reply:false to test the performance difference between -reply:true
This commit is contained in:
parent
f412a0ae50
commit
c2aab97018
1 changed files with 6 additions and 0 deletions
|
|
@ -68,7 +68,13 @@ class EventsDB extends NPostgres {
|
||||||
|
|
||||||
if (event.kind === 1) {
|
if (event.kind === 1) {
|
||||||
ext.reply = event.tags.some(([name]) => name === 'e').toString();
|
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);
|
const language = detectLanguage(event.content, 0.90);
|
||||||
|
|
||||||
if (language) {
|
if (language) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue