diff --git a/src/hooks/badges.ts b/src/hooks/badges.ts index fd27a28..e0dbc96 100644 --- a/src/hooks/badges.ts +++ b/src/hooks/badges.ts @@ -44,9 +44,7 @@ export function useBadges(pubkey: string, leaveOpen = true) { const acceptedSub = useMemo(() => { if (rawBadges.length === 0) return null; - const rb = new RequestBuilder( - `accepted-badges:${pubkey.slice(0, 12)}:${rawBadges.length}`, - ); + const rb = new RequestBuilder(`accepted-badges:${pubkey.slice(0, 12)}`); rb.withFilter() .kinds([EventKind.ProfileBadges]) .tag("d", ["profile_badges"]) diff --git a/src/hooks/live-chat.tsx b/src/hooks/live-chat.tsx index 687699a..111e155 100644 --- a/src/hooks/live-chat.tsx +++ b/src/hooks/live-chat.tsx @@ -42,9 +42,7 @@ export function useLiveChatFeed(link: NostrLink, eZaps?: Array) { const esub = useMemo(() => { if (etags.length === 0) return null; - const rb = new RequestBuilder( - `reactions:${link.id}:${link.author}:${etags.length}`, - ); + const rb = new RequestBuilder(`reactions:${link.id}:${link.author}`); rb.withOptions({ leaveOpen: true, }); diff --git a/src/hooks/live-streams.ts b/src/hooks/live-streams.ts index 712cd06..7918ac6 100644 --- a/src/hooks/live-streams.ts +++ b/src/hooks/live-streams.ts @@ -7,9 +7,10 @@ import { unixNow } from "@snort/shared"; import { LIVE_STREAM } from "const"; import { System, StreamState } from "index"; import { findTag } from "utils"; +import { WEEK } from "const"; export function useStreamsFeed(tag?: string) { - const since = useMemo(() => unixNow() - 86400, [tag]); + const since = useMemo(() => unixNow() - WEEK, [tag]); const rb = useMemo(() => { const rb = new RequestBuilder(tag ? `streams:${tag}` : "streams"); rb.withOptions({