nostrdb/filter: don't allow adding id elements on kinds
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
267a9ac54b
commit
2b14acd62f
@@ -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_SINCE:
|
||||||
case NDB_FILTER_UNTIL:
|
case NDB_FILTER_UNTIL:
|
||||||
case NDB_FILTER_LIMIT:
|
case NDB_FILTER_LIMIT:
|
||||||
|
case NDB_FILTER_KINDS:
|
||||||
return 0;
|
return 0;
|
||||||
case NDB_FILTER_IDS:
|
case NDB_FILTER_IDS:
|
||||||
case NDB_FILTER_AUTHORS:
|
case NDB_FILTER_AUTHORS:
|
||||||
case NDB_FILTER_KINDS:
|
|
||||||
case NDB_FILTER_GENERIC:
|
case NDB_FILTER_GENERIC:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user