diff --git a/nostr_dvm/tasks/discovery_censor_wot.py b/nostr_dvm/tasks/discovery_censor_wot.py index ee995e0..846b8d0 100644 --- a/nostr_dvm/tasks/discovery_censor_wot.py +++ b/nostr_dvm/tasks/discovery_censor_wot.py @@ -172,7 +172,7 @@ def build_example(name, identifier, admin_config): nip89info = { "name": name, "image": "https://image.nostr.build/19872a2edd866258fa9eab137631efda89310d52b2c6ea8f99ef057325aa1c7b.jpg", - "about": "I show users that have been reported by either your followers or your Web of Trust.", + "about": "I show users that have been reported by either your followers or your Web of Trust. Note: Anyone can report, so you might double check and decide for yourself who to mute. Considers spam, illegal and impersonation reports. Notice: This works with NIP51 mute lists. Not all clients support the new mute list format.", "encryptionSupported": True, "cashuAccepted": True, "action": "mute", # follow, unfollow, mute, unmute diff --git a/ui/noogle/src/components/FilterGeneration.vue b/ui/noogle/src/components/FilterGeneration.vue index d2cfe05..802429d 100644 --- a/ui/noogle/src/components/FilterGeneration.vue +++ b/ui/noogle/src/components/FilterGeneration.vue @@ -907,13 +907,21 @@ async function mute(result) { } async function unfollow(result){ - let client = store.state.client console.log(result.authorid) + let found = false + let element + for (let em of store.state.contacts){ + if (em.publicKey.toHex() === result.authorid){ + found = true + element = em + break + } - let element = await store.state.contacts.find(x => x.publicKey.toHex() === result.authorid) + } + // let element = store.state.contacts.find(x => x.publicKey.toHex() === result.authorid) - if (element !== undefined){ + if (found){ console.log(element) let index = store.state.contacts.indexOf(element) @@ -1337,10 +1345,6 @@ const submitHandler = async () => {