diff --git a/README.md b/README.md index fa4ba53..fe93d49 100644 --- a/README.md +++ b/README.md @@ -76,3 +76,8 @@ publishing to wss://relayable.org... success. ~> echo '{"content":"hello world","created_at":1698923350,"id":"05bd99d54cb835f327e0092c4275ee44c7ff51219eff417c19f70c9e2c53ad5a","kind":1,"pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","sig":"0a04a296321ed933858577f36fb2fb9a0933e966f9ee32b539493f5a4d00120891b1ca9152ebfbc04fb403bdaa7c73f415e7c4954e55726b4b4fa8cebf008cd6","tags":[]}' | nak verify invalid .id, expected 05bd99d54cb835f427e0092c4275ee44c7ff51219eff417c19f70c9e2c53ad5a, got 05bd99d54cb835f327e0092c4275ee44c7ff51219eff417c19f70c9e2c53ad5a ``` + +### fetch all quoted events by a given pubkey in their last 100 notes +```shell +nak req -l 100 -k 1 -a 2edbcea694d164629854a52583458fd6d965b161e3c48b57d3aff01940558884 wss://relay.damus.io | jq -r '.content | match("nostr:((note1|nevent1)[a-z0-9]+)";"g") | .captures[0].string' | nak decode | jq -cr '{ids: [.id]}' | nak req wss://relay.damus.io +``` diff --git a/req.go b/req.go index 499b411..06c0955 100644 --- a/req.go +++ b/req.go @@ -99,7 +99,7 @@ example: filter := nostr.Filter{} if stdinFilter != "" { if err := json.Unmarshal([]byte(stdinFilter), &filter); err != nil { - lineProcessingError(c, "invalid filter received from stdin: %s", err) + lineProcessingError(c, "invalid filter '%s' received from stdin: %s", stdinFilter, err) continue } }