From 4b6db36646aa02b70c62bc4a474105e3977cfd8b Mon Sep 17 00:00:00 2001 From: daniyal Date: Tue, 19 Nov 2024 00:57:32 +0500 Subject: [PATCH] fix: include authors in wotLevel filter --- src/layout/index.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/layout/index.tsx b/src/layout/index.tsx index 53a44e6..f936f04 100644 --- a/src/layout/index.tsx +++ b/src/layout/index.tsx @@ -24,9 +24,7 @@ export const Layout = () => { const dispatch = useAppDispatch() const { ndk, fetchEventFromUserRelays } = useNDKContext() const userState = useAppSelector((state) => state.user) - const { siteWotStatus, siteWotLevel, userWotLevel } = useAppSelector( - (state) => state.wot - ) + const { siteWotStatus } = useAppSelector((state) => state.wot) // calculate site's wot useEffect(() => { @@ -46,7 +44,7 @@ export const Layout = () => { }) } } - }, [ndk, siteWotLevel, dispatch]) + }, [ndk, dispatch]) // calculate user's wot useEffect(() => { @@ -62,7 +60,7 @@ export const Layout = () => { toast.error('An error occurred in calculating user web-of-trust!') }) } - }, [ndk, userState.user, userWotLevel, dispatch]) + }, [ndk, userState.user, dispatch]) // get site's wot level useEffect(() => { @@ -72,7 +70,8 @@ export const Layout = () => { fetchEventFromUserRelays( { kinds: [NDKKind.AppSpecificData], - '#d': ['degmods'] + '#d': ['degmods'], + authors: [hexPubkey] }, hexPubkey, UserRelaysType.Both @@ -94,7 +93,8 @@ export const Layout = () => { fetchEventFromUserRelays( { kinds: [NDKKind.AppSpecificData], - '#d': ['degmods'] + '#d': ['degmods'], + authors: [hexPubkey] }, hexPubkey, UserRelaysType.Both