diff --git a/src/controllers/nostr/relay.ts b/src/controllers/nostr/relay.ts index 4d8ab2c..4f278d6 100644 --- a/src/controllers/nostr/relay.ts +++ b/src/controllers/nostr/relay.ts @@ -77,7 +77,10 @@ function connectStream(socket: WebSocket) { send(['EVENT', subId, event]); } } catch (e) { - if (e instanceof RelayError) { + if ( + e instanceof RelayError || + e.message.slice(-('filter too far into the future'.length)) === 'filter too far into the future' + ) { send(['CLOSED', subId, e.message]); } else { send(['CLOSED', subId, 'error: something went wrong']);