From d0213c52a68461efcf737d2e3557d9a763826639 Mon Sep 17 00:00:00 2001 From: Callum Macdonald Date: Sun, 11 Aug 2024 12:58:28 +0200 Subject: [PATCH] Typecast and lint for @shuesken --- src/nostr/subscribe.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nostr/subscribe.ts b/src/nostr/subscribe.ts index 5843f72..58d0164 100644 --- a/src/nostr/subscribe.ts +++ b/src/nostr/subscribe.ts @@ -23,7 +23,6 @@ import { isValidPlusCode, uniq, } from "./utils"; -import { isValidAttribute } from "dompurify"; import * as nostrify from "@nostrify/nostrify"; const eventToNoteMinusProfile = ({ @@ -160,7 +159,7 @@ export const subscribe = async ({ await _query({ filters: [eventsFilterWithLimit], - onEvent: onNoteEvent, + onEvent: onNoteEvent as (event: NostrEvent) => void, }); const authorsWithDuplicates = noteEventsQueue.map((event) =>