Add wot calculation to app
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {MUTES, asDecryptedEvent, readList} from '@welshman/util'
|
||||
import {MUTES, getListValues, asDecryptedEvent, readList} from '@welshman/util'
|
||||
import {type TrustedEvent, type PublishedList} from '@welshman/util'
|
||||
import {type SubscribeRequestWithHandlers} from "@welshman/net"
|
||||
import {deriveEventsMapped, withGetter} from '@welshman/store'
|
||||
@@ -33,3 +33,8 @@ export const {
|
||||
await load({...request, filters: [{kinds: [MUTES], authors: [pubkey]}]})
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
export const getMutes = (pubkey: string) =>
|
||||
getListValues("p", mutesByPubkey.get().get(pubkey))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user