diff --git a/src/const.ts b/src/const.ts index bb78e11..baae714 100644 --- a/src/const.ts +++ b/src/const.ts @@ -1,4 +1,3 @@ -import { isHex } from "@snort/shared"; import { EventKind, parseNostrLink } from "@snort/system"; export const LIVE_STREAM = 30_311 as EventKind; @@ -43,10 +42,10 @@ function loadWhitelist() { const list = import.meta.env.VITE_SINGLE_PUBLISHER as string | undefined; if (list) { return list.split(",").map(a => { - if (isHex(a)) { - return a; - } else { + if (a.startsWith('npub')) { return parseNostrLink(a).id; + } else { + return a; } }); }