fix: include authors in wotLevel filter
All checks were successful
Release to Staging / build_and_release (push) Successful in 54s
All checks were successful
Release to Staging / build_and_release (push) Successful in 54s
This commit is contained in:
parent
0b2de940d0
commit
4b6db36646
@ -24,9 +24,7 @@ export const Layout = () => {
|
|||||||
const dispatch = useAppDispatch()
|
const dispatch = useAppDispatch()
|
||||||
const { ndk, fetchEventFromUserRelays } = useNDKContext()
|
const { ndk, fetchEventFromUserRelays } = useNDKContext()
|
||||||
const userState = useAppSelector((state) => state.user)
|
const userState = useAppSelector((state) => state.user)
|
||||||
const { siteWotStatus, siteWotLevel, userWotLevel } = useAppSelector(
|
const { siteWotStatus } = useAppSelector((state) => state.wot)
|
||||||
(state) => state.wot
|
|
||||||
)
|
|
||||||
|
|
||||||
// calculate site's wot
|
// calculate site's wot
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -46,7 +44,7 @@ export const Layout = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [ndk, siteWotLevel, dispatch])
|
}, [ndk, dispatch])
|
||||||
|
|
||||||
// calculate user's wot
|
// calculate user's wot
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -62,7 +60,7 @@ export const Layout = () => {
|
|||||||
toast.error('An error occurred in calculating user web-of-trust!')
|
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
|
// get site's wot level
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -72,7 +70,8 @@ export const Layout = () => {
|
|||||||
fetchEventFromUserRelays(
|
fetchEventFromUserRelays(
|
||||||
{
|
{
|
||||||
kinds: [NDKKind.AppSpecificData],
|
kinds: [NDKKind.AppSpecificData],
|
||||||
'#d': ['degmods']
|
'#d': ['degmods'],
|
||||||
|
authors: [hexPubkey]
|
||||||
},
|
},
|
||||||
hexPubkey,
|
hexPubkey,
|
||||||
UserRelaysType.Both
|
UserRelaysType.Both
|
||||||
@ -94,7 +93,8 @@ export const Layout = () => {
|
|||||||
fetchEventFromUserRelays(
|
fetchEventFromUserRelays(
|
||||||
{
|
{
|
||||||
kinds: [NDKKind.AppSpecificData],
|
kinds: [NDKKind.AppSpecificData],
|
||||||
'#d': ['degmods']
|
'#d': ['degmods'],
|
||||||
|
authors: [hexPubkey]
|
||||||
},
|
},
|
||||||
hexPubkey,
|
hexPubkey,
|
||||||
UserRelaysType.Both
|
UserRelaysType.Both
|
||||||
|
Loading…
Reference in New Issue
Block a user