adapt to nostr lib websocket refactor commit (which includes the filters thing).

This commit is contained in:
fiatjaf
2025-07-11 13:02:06 -03:00
parent fb377f4775
commit ff02e6890b
3 changed files with 3 additions and 26 deletions

2
req.go
View File

@@ -164,7 +164,7 @@ example:
if c.Bool("bare") {
result = filter.String()
} else {
j, _ := json.Marshal(nostr.ReqEnvelope{SubscriptionID: "nak", Filter: filter})
j, _ := json.Marshal(nostr.ReqEnvelope{SubscriptionID: "nak", Filters: []nostr.Filter{filter}})
result = string(j)
}