minor fixes

This commit is contained in:
Believethehype
2024-02-08 10:32:09 +01:00
parent 94e471fdf8
commit 9c8e4c61f0
2 changed files with 11 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import Donate from "@/components/Donate.vue";
export default { export default {
name: "Home", name: "Home",
components: {Donate, Nip07, ImageGeneration} components: {Donate, ImageGeneration}
} }
</script> </script>

View File

@@ -94,8 +94,8 @@ async function send_search_request(msg) {
let content = "NIP 90 Search request" let content = "NIP 90 Search request"
let kind = 5302 let kind = 5302
console.log((datefrom.value/1000).toFixed(0)) //console.log((datefrom.value/1000).toFixed(0))
console.log((dateto.value/1000).toFixed(0)) //console.log((dateto.value/1000).toFixed(0))
let tags = [ let tags = [
["i", msg, "text"], ["i", msg, "text"],
["param", "max_results", "150"], ["param", "max_results", "150"],
@@ -129,6 +129,14 @@ async function send_search_request(msg) {
tags_t.push(Tag.parse(tag)) tags_t.push(Tag.parse(tag))
} }
let evt = new EventBuilder(kind, content, tags_t) let evt = new EventBuilder(kind, content, tags_t)
try{
res = await client.sendEventBuilder(evt)
}
catch(error){
console.log(error)
}
res = await client.sendEventBuilder(evt) res = await client.sendEventBuilder(evt)
requestid = res.toHex() requestid = res.toHex()
} }