From 216710657724a7fe052c6d199a89d571eb915119 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 6 Jul 2024 20:35:12 +0100 Subject: [PATCH] Fix not being able to post --- src/storages/EventsDB.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/storages/EventsDB.ts b/src/storages/EventsDB.ts index f640cc45..d66a65b7 100644 --- a/src/storages/EventsDB.ts +++ b/src/storages/EventsDB.ts @@ -250,6 +250,8 @@ class EventsDB implements NStore { /** Converts filters to more performant, simpler filters that are better for SQLite. */ async expandFilters(filters: NostrFilter[]): Promise { + filters = structuredClone(filters); + for (const filter of filters) { if (filter.search) { const tokens = NIP50.parseInput(filter.search);