nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 256b2a65587cd987700c21f7ebeffc187083c9f3
parent 7bee7350af3265778b66432214ded4366a675795
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 30 Oct 2025 17:25:33 -0700

fix is_reply_to_root

this was broken

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

Diffstat:
Msrc/nostrdb.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nostrdb.c b/src/nostrdb.c @@ -2097,7 +2097,7 @@ static void ndb_parse_reply(struct ndb_note *note, struct ndb_note_reply *note_r static int ndb_is_reply_to_root(struct ndb_note_reply *reply) { if (reply->root && !reply->reply) - return 0; + return 1; else if (reply->root && reply->reply) return !memcmp(reply->root, reply->reply, 32); else