This commit is contained in:
codytseng
2025-07-19 17:24:51 +08:00
parent 28ec943a52
commit 78725c1d14
45 changed files with 698 additions and 766 deletions

View File

@@ -1,4 +1,4 @@
import { extractPubkeysFromEventTags } from '@/lib/tag'
import { getPubkeysFromPTags } from '@/lib/tag'
import client from '@/services/client.service'
import { Event } from 'nostr-tools'
import { useEffect, useState } from 'react'
@@ -18,7 +18,7 @@ export function useFetchFollowings(pubkey?: string | null) {
if (!event) return
setFollowListEvent(event)
setFollowings(extractPubkeysFromEventTags(event.tags))
setFollowings(getPubkeysFromPTags(event.tags))
} finally {
setIsFetching(false)
}