diff --git a/nostr_dvm/tasks/content_discovery_currently_popular.py b/nostr_dvm/tasks/content_discovery_currently_popular.py index 056cdc1..6e81f26 100644 --- a/nostr_dvm/tasks/content_discovery_currently_popular.py +++ b/nostr_dvm/tasks/content_discovery_currently_popular.py @@ -218,7 +218,7 @@ def build_example_subscription(name, identifier, admin_config): nip89info = { "name": name, "image": "https://image.nostr.build/b29b6ec4bf9b6184f69d33cb44862db0d90a2dd9a506532e7ba5698af7d36210.jpg", - "about": "I show notes that are currently popular, just like the free DVM, I'm also used for testing subscriptions. (beta)", + "about": "I show notes that are currently popular all over Nostr. I'm also used for testing subscriptions.", "lud16": dvm_config.LN_ADDRESS, "encryptionSupported": True, "cashuAccepted": True, @@ -250,7 +250,7 @@ def build_example_subscription(name, identifier, admin_config): nip88config.PAYMENT_VERIFIER_PUBKEY = "5b5c045ecdf66fb540bdf2049fe0ef7f1a566fa427a4fe50d400a011b65a3a7e" admin_config.UPDATE_PROFILE = False - admin_config.REBROADCAST_NIP89 = False + admin_config.REBROADCAST_NIP89 = True admin_config.REBROADCAST_NIP88 = False # admin_config.FETCH_NIP88 = True diff --git a/nostr_dvm/tasks/content_discovery_currently_popular_followers.py b/nostr_dvm/tasks/content_discovery_currently_popular_followers.py index 36bb992..e8dc079 100644 --- a/nostr_dvm/tasks/content_discovery_currently_popular_followers.py +++ b/nostr_dvm/tasks/content_discovery_currently_popular_followers.py @@ -216,8 +216,8 @@ def build_example(name, identifier, admin_config): # Add NIP89 nip89info = { "name": name, - "image": "https://image.nostr.build/b29b6ec4bf9b6184f69d33cb44862db0d90a2dd9a506532e7ba5698af7d36210.jpg", - "about": "I show notes that are currently popular among people you follow", + "image": "https://image.nostr.build/d92652a6a07677e051d647dcf9f0f59e265299b3335a939d008183a911513f4a.jpg", + "about": "I show notes that are currently popular from people you follow", "lud16": dvm_config.LN_ADDRESS, "encryptionSupported": True, "cashuAccepted": True, diff --git a/ui/noogle/src/components/ImageGeneration.vue b/ui/noogle/src/components/ImageGeneration.vue index cb56997..03cad42 100644 --- a/ui/noogle/src/components/ImageGeneration.vue +++ b/ui/noogle/src/components/ImageGeneration.vue @@ -38,6 +38,15 @@ let dvms =[] let hasmultipleinputs = false async function generate_image(message) { + if (!store.state.imagehasEventListener){ + store.commit('set_imagehasEventListener', true) + listen() + + } + else{ + console.log("Already has event listener") + } + try { if (message === undefined){ message = "A purple Ostrich" @@ -95,14 +104,7 @@ async function generate_image(message) { } store.commit('set_current_request_id_image', requestid) - if (!store.state.imagehasEventListener){ - store.commit('set_imagehasEventListener', true) - listen() - } - else{ - console.log("Already has event listener") - } } catch (error) { console.log(error); diff --git a/ui/noogle/src/components/RecommendationGeneration.vue b/ui/noogle/src/components/RecommendationGeneration.vue index b8c4cc9..f357a32 100644 --- a/ui/noogle/src/components/RecommendationGeneration.vue +++ b/ui/noogle/src/components/RecommendationGeneration.vue @@ -75,6 +75,16 @@ async function generate_feed(id) { try { + + if (!store.state.recommendationehasEventListener){ + store.commit('set_recommendationEventListener', true) + listen() + + } + else{ + console.log("Already has event listener") + } + let client = store.state.client //console.log(dvms.find(i => i.id === id).encryptionSupported) @@ -185,14 +195,7 @@ async function generate_feed(id) { store.commit('set_current_request_id_recommendation', requestid) - if (!store.state.recommendationehasEventListener){ - store.commit('set_recommendationEventListener', true) - listen() - } - else{ - console.log("Already has event listener") - } } catch (error) { console.log(error); @@ -966,7 +969,7 @@ const submitHandler = async () => { :key="dvm.id">
-
+
DVM Picture
@@ -1325,7 +1328,7 @@ h3 { .avatar { - margin-right: 10px; + margin-right: auto; margin-left: 0px; display: inline-block; width: 60px; diff --git a/ui/noogle/src/components/Search.vue b/ui/noogle/src/components/Search.vue index d32e96a..0e2a3d2 100644 --- a/ui/noogle/src/components/Search.vue +++ b/ui/noogle/src/components/Search.vue @@ -60,6 +60,15 @@ onMounted(async () => { }) async function send_search_request(msg) { + + if (!store.state.hasEventListener){ + store.commit('set_hasEventListener', true) + listen() + + } + else{ + console.log("Already has event listener") + } try { if (msg === undefined){ msg = "Nostr" @@ -154,14 +163,7 @@ async function send_search_request(msg) { store.commit('set_current_request_id_search', requestid) store.commit('set_current_request_profile_id_search', requestid_profile) - if (!store.state.hasEventListener){ - store.commit('set_hasEventListener', true) - listen() - } - else{ - console.log("Already has event listener") - } console.log(res) } catch (error) { console.log(error); diff --git a/ui/noogle/src/components/SummarizationGeneration.vue b/ui/noogle/src/components/SummarizationGeneration.vue index 7ea4abc..6843bdf 100644 --- a/ui/noogle/src/components/SummarizationGeneration.vue +++ b/ui/noogle/src/components/SummarizationGeneration.vue @@ -33,7 +33,14 @@ import index from "vuex"; let dvms =[] async function summarizefeed(eventids) { + if (!store.state.summarizationhasEventListener){ + store.commit('set_summariarizationEventListener', true) + listen() + } + else{ + console.log("Already has event listener") + } let sortedIds = eventids.sort(function(a,b) {return (a.index > b.index) ? 1 : ((b.index > a.index) ? -1 : 0);} ); try { @@ -89,14 +96,7 @@ let sortedIds = eventids.sort(function(a,b) {return (a.index > b.index) ? 1 : (( } store.commit('set_current_request_id_summarization', requestid) - if (!store.state.summarizationhasEventListener){ - store.commit('set_summariarizationEventListener', true) - listen() - } - else{ - console.log("Already has event listener") - } } catch (error) { console.log(error);