EventsDB: index kind 20 in search the same as kind 1

This commit is contained in:
Alex Gleason 2025-01-05 11:26:05 -06:00
parent 7a60b4b8d8
commit 079177ea0b
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -283,6 +283,7 @@ class EventsDB extends NPostgres {
case 0:
return EventsDB.buildUserSearchContent(event);
case 1:
case 20:
return nip27.replaceAll(event.content, () => '');
case 30009:
return EventsDB.buildTagsSearchContent(event.tags.filter(([t]) => t !== 'alt'));