mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-10 23:22:38 +02:00
minor fixes
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
@@ -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()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user