mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-20 04:46:27 +01:00
Update ImageGeneration.vue
This commit is contained in:
@@ -271,34 +271,34 @@ async function listen() {
|
|||||||
|
|
||||||
for (const el of store.state.nip89dvms) {
|
for (const el of store.state.nip89dvms) {
|
||||||
let status = "unknown"
|
let status = "unknown"
|
||||||
let jsonentry = {
|
let jsonentry = {
|
||||||
id: event.author.toHex(),
|
id: event.author.toHex(),
|
||||||
kind: "",
|
kind: "",
|
||||||
status: status,
|
status: status,
|
||||||
result: "",
|
result: "",
|
||||||
name: "Not announced" + event.author.toBech32(),
|
name: "Not announced" + event.author.toBech32(),
|
||||||
about: "",
|
about: "",
|
||||||
image: "",
|
image: "",
|
||||||
amount: 0,
|
amount: 0,
|
||||||
bolt11: "",
|
bolt11: "",
|
||||||
nip90params: {},
|
nip90params: {},
|
||||||
|
|
||||||
}
|
}
|
||||||
if (JSON.parse(el.event).pubkey === event.author.toHex().toString() && el.kind === "5100" ) {
|
if (JSON.parse(el.event).pubkey === event.author.toHex().toString() && el.kind === "5100" ) {
|
||||||
jsonentry.name = el.name
|
jsonentry.name = el.name
|
||||||
jsonentry.about = el.about
|
jsonentry.about = el.about
|
||||||
jsonentry.image = el.image
|
jsonentry.image = el.image
|
||||||
jsonentry.nip90Params = el.nip90Params
|
jsonentry.nip90Params = el.nip90Params
|
||||||
jsonentry.reactions = await dvmreactions(PublicKey.parse(el.id), store.state.followings)
|
jsonentry.reactions = await dvmreactions(PublicKey.parse(el.id), store.state.followings)
|
||||||
jsonentry.event = Event.fromJson(el.event)
|
jsonentry.event = Event.fromJson(el.event)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (dvms.filter(i => i.id === jsonentry.id).length === 0) {
|
if (dvms.filter(i => i.id === jsonentry.id).length === 0) {
|
||||||
dvms.push(jsonentry)
|
dvms.push(jsonentry)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//miniToastr.showMessage("DVM: " + dvmname, "Received Results", VueNotifications.types.success)
|
//miniToastr.showMessage("DVM: " + dvmname, "Received Results", VueNotifications.types.success)
|
||||||
dvms.find(i => i.id === event.author.toHex()).result = event.content
|
dvms.find(i => i.id === event.author.toHex()).result = event.content
|
||||||
dvms.find(i => i.id === event.author.toHex()).status = "finished"
|
dvms.find(i => i.id === event.author.toHex()).status = "finished"
|
||||||
|
|||||||
Reference in New Issue
Block a user