notecrumbs

a nostr opengraph server build on nostrdb and egui
git clone git://jb55.com/notecrumbs
Log | Files | Refs | README | LICENSE

commit ff2746bf9f0d9162c86c12043f6bba5fe3b9655e
parent 8984a86f6fcd3358827d8e3540233fcce1f470ad
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 22 Oct 2025 07:25:23 -0700

query: use note result directly

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

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

diff --git a/src/render.rs b/src/render.rs @@ -289,7 +289,7 @@ fn query_note_by_address<'a>( results = ndb.query(txn, &[coord_filter], 1)?; } if let Some(result) = results.first() { - ndb.get_note_by_key(txn, result.note_key) + Ok(result.note.clone()) } else { Err(nostrdb::Error::NotFound) }