From 2b14acd62fe968992f1ec8ad7796859fd75ade43 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 4 Jan 2024 13:43:51 -0800 Subject: [PATCH] nostrdb/filter: don't allow adding id elements on kinds Signed-off-by: William Casarin --- nostrdb/src/nostrdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index 819a406d..ca79054c 100644 --- 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; }