feat: mute
This commit is contained in:
parent
34ff0cd314
commit
cbae26e492
26 changed files with 564 additions and 45 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { getFollowingsFromFollowListEvent } from '@/lib/event'
|
||||
import { extractPubkeysFromEventTags } 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(getFollowingsFromFollowListEvent(event))
|
||||
setFollowings(extractPubkeysFromEventTags(event.tags))
|
||||
} finally {
|
||||
setIsFetching(false)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue