feat: 💨

This commit is contained in:
codytseng 2025-11-09 18:53:04 +08:00
parent 7139211fa1
commit 9b9ecf76d6
3 changed files with 34 additions and 15 deletions

View file

@ -41,7 +41,7 @@ export function UserTrustProvider({ children }: { children: React.ReactNode }) {
if (!currentPubkey) return
const initWoT = async () => {
const followings = await client.fetchFollowings(currentPubkey)
const followings = await client.fetchFollowings(currentPubkey, false)
followings.forEach((pubkey) => wotSet.add(pubkey))
const batchSize = 20
@ -49,7 +49,7 @@ export function UserTrustProvider({ children }: { children: React.ReactNode }) {
const batch = followings.slice(i, i + batchSize)
await Promise.allSettled(
batch.map(async (pubkey) => {
const _followings = await client.fetchFollowings(pubkey)
const _followings = await client.fetchFollowings(pubkey, false)
_followings.forEach((following) => {
wotSet.add(following)
})