mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-06-09 11:29:14 +02:00
add new custom tag filter to nip89 search
This commit is contained in:
parent
814af84171
commit
a0a06274d7
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
import '../app.css'
|
import '../app.css'
|
||||||
import store from "@/store.js";
|
import store from "@/store.js";
|
||||||
import {ClientBuilder, ClientSigner, Filter, Keys, NostrDatabase, Tag} from "@rust-nostr/nostr-sdk";
|
import {Alphabet, ClientBuilder, ClientSigner, Filter, Keys, NostrDatabase, Tag} from "@rust-nostr/nostr-sdk";
|
||||||
import miniToastr from "mini-toastr";
|
import miniToastr from "mini-toastr";
|
||||||
import VueNotifications from "vue-notifications";
|
import VueNotifications from "vue-notifications";
|
||||||
|
|
||||||
@ -51,8 +51,13 @@ async function getnip89s(){
|
|||||||
//await client.addRelay("wss://nostr-pub.wellorder.net")
|
//await client.addRelay("wss://nostr-pub.wellorder.net")
|
||||||
await client.connect();
|
await client.connect();
|
||||||
|
|
||||||
|
let dvmkinds = []
|
||||||
|
for (let i = 5000; i < 6000; i++) {
|
||||||
|
dvmkinds.push(i.toString())
|
||||||
|
}
|
||||||
|
console.log(dvmkinds)
|
||||||
|
|
||||||
const filter = new Filter().kind(31990)
|
const filter = new Filter().kind(31990).customTag(Alphabet.K, dvmkinds)
|
||||||
//await client.reconcile(filter);
|
//await client.reconcile(filter);
|
||||||
//const filterl = new Filter().kind(31990)
|
//const filterl = new Filter().kind(31990)
|
||||||
//let evts = await client.database.query([filterl])
|
//let evts = await client.database.query([filterl])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user