Add wot calculation to app

This commit is contained in:
Jon Staab
2024-09-24 16:30:18 -07:00
parent f246e9914a
commit fd4f782798
7 changed files with 116 additions and 3 deletions
+6 -1
View File
@@ -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))