damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 9bbeffe3200792a56fff070aca30185dcbc59b56
parent 3e5d7581ba73946ef9f944398a01f4a246ec2068
Author: William Casarin <jb55@jb55.com>
Date:   Sat,  2 Dec 2023 12:16:53 -0800

nostrdb/search: also index longform

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mnostrdb/nostrdb.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nostrdb/nostrdb.c b/nostrdb/nostrdb.c @@ -2795,8 +2795,8 @@ static uint64_t ndb_write_note(struct ndb_txn *txn, if (!ndb_write_note_kind_index(txn, note->note, note_key)) return 0; - // only do fulltext index on kind1 notes - if (note->note->kind == 1) { + // only do fulltext index on text and longform notes + if (note->note->kind == 1 || note->note->kind == 30023) { if (!ndb_write_note_fulltext_index(txn, note->note, note_key)) return 0; }