From 77d0a8dc357789eb52015b6bc72b25f1389cc5f2 Mon Sep 17 00:00:00 2001 From: Silberengel Date: Sun, 15 Mar 2026 20:16:16 +0100 Subject: [PATCH] bug-fixes --- src/components/KindFilter/index.tsx | 4 +--- src/lib/event.ts | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/KindFilter/index.tsx b/src/components/KindFilter/index.tsx index 53487758..d6af3f87 100644 --- a/src/components/KindFilter/index.tsx +++ b/src/components/KindFilter/index.tsx @@ -54,9 +54,7 @@ export default function KindFilter({ showKinds: savedShowKinds, showKind1OPs: savedShowKind1OPs, showRepliesAndComments: savedShowRepliesAndComments, - updateShowKinds, - updateShowKind1OPs, - updateShowRepliesAndComments + updateShowKinds } = useKindFilter() const [open, setOpen] = useState(false) const [temporaryShowKinds, setTemporaryShowKinds] = useState(showKinds) diff --git a/src/lib/event.ts b/src/lib/event.ts index 829a7150..f1ca7384 100644 --- a/src/lib/event.ts +++ b/src/lib/event.ts @@ -2,8 +2,8 @@ import { EMBEDDED_MENTION_REGEX, ExtendedKind } from '@/constants' import client from '@/services/client.service' import { TImetaInfo } from '@/types' import { LRUCache } from 'lru-cache' -import { Event, kinds, nip19, UnsignedEvent } from 'nostr-tools' -import { fastEventHash, getPow } from 'nostr-tools/nip13' +import { Event, getEventHash, kinds, nip19, UnsignedEvent } from 'nostr-tools' +import { getPow } from 'nostr-tools/nip13' import { generateBech32IdFromATag, generateBech32IdFromETag, @@ -303,7 +303,7 @@ export async function minePow( } tag[1] = (++count).toString() - event.id = fastEventHash(event) + event.id = getEventHash(event) if (getPow(event.id) >= difficulty) { resolve(event)