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

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-01-04 13:43:51 -08:00
committed by Daniel D’Aquino
parent 267a9ac54b
commit 2b14acd62f

View File

@@ -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;
}