From dcd1bd89a779b979c6ec7e0f7d9d655c169fb6a5 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 19 Dec 2023 16:28:37 -0600 Subject: [PATCH] Ignore unrecognized filters --- src/filters.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filters.h b/src/filters.h index 22a82d3..da8aa42 100644 --- a/src/filters.h +++ b/src/filters.h @@ -154,8 +154,8 @@ struct NostrFilter { until = v.get_unsigned(); } else if (k == "limit") { limit = v.get_unsigned(); - } else { - throw herr("unrecognised filter item"); + } else if (k == "search") { + throw herr("search is not supported"); } }