damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 2b14acd62fe968992f1ec8ad7796859fd75ade43
parent 267a9ac54bb7f38459ec7c94b70fdf01079f4fa7
Author: William Casarin <jb55@jb55.com>
Date:   Thu,  4 Jan 2024 13:43:51 -0800

nostrdb/filter: don't allow adding id elements on kinds

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

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

diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c @@ -724,10 +724,10 @@ int ndb_filter_add_id_element(struct ndb_filter *filter, const unsigned char *id case NDB_FILTER_SINCE: case NDB_FILTER_UNTIL: case NDB_FILTER_LIMIT: + case NDB_FILTER_KINDS: return 0; case NDB_FILTER_IDS: case NDB_FILTER_AUTHORS: - case NDB_FILTER_KINDS: case NDB_FILTER_GENERIC: break; }