notecrumbs

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

commit bcb597ab065f3c61c798b52fce65fb9683876942
parent 94a20feb37a4103f19691a7bb772a8ca7dc2b31c
Author: alltheseas <alltheseas@users.noreply.github.com>
Date:   Tue, 21 Oct 2025 22:26:32 -0500

fix: remove redundant 'a' tag filter in address queries

The build_address_filter function was adding both 'd' tag and 'a' tag
filters, creating an overly restrictive query. According to NIP-33,
parameterized replaceable events should be queried using author + kind
+ 'd' tag. The 'a' tag is a reference tag and shouldn't be part of the
primary filter.

This fixes longform articles (NIP-23) not displaying properly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

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

diff --git a/src/render.rs b/src/render.rs @@ -267,7 +267,6 @@ fn build_address_filter(author: &[u8; 32], kind: u64, identifier: &str) -> nostr if !identifier.is_empty() { let ident = identifier.to_string(); filter = filter.tags(vec![ident], 'd'); - filter = filter.tags(vec![coordinate_tag(author, kind, identifier)], 'a'); } filter.limit(1).build() }