change import back

This commit is contained in:
Barry Deen
2024-10-08 12:52:30 -04:00
parent b7f371ed38
commit a3d8437fb5

View File

@@ -89,8 +89,16 @@ func importTaggedNotes() {
continue
}
wdb.Publish(ctx, *ev.Event)
taggedImportedNotes++
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)
taggedImportedNotes++
}
}
}
log.Println("📦 imported", taggedImportedNotes, "tagged notes")