increase tagged import

This commit is contained in:
Barry Deen
2024-10-08 12:39:39 -04:00
parent 748fdcbec5
commit b7f371ed38

View File

@@ -89,15 +89,10 @@ func importTaggedNotes() {
continue continue
} }
for _, tag := range ev.Event.Tags.GetAll([]string{"p"}) {
if len(tag) < 2 {
continue
}
if tag[1] == nPubToPubkey(config.OwnerNpub) {
wdb.Publish(ctx, *ev.Event) wdb.Publish(ctx, *ev.Event)
taggedImportedNotes++ taggedImportedNotes++
} }
}
log.Println("📦 imported", taggedImportedNotes, "tagged notes") log.Println("📦 imported", taggedImportedNotes, "tagged notes")
time.Sleep(5 * time.Second) time.Sleep(5 * time.Second)
@@ -109,7 +104,6 @@ func importTaggedNotes() {
break break
} }
} }
}
} }
func subscribeInbox() { func subscribeInbox() {