mirror of
https://github.com/aljazceru/haven.git
synced 2025-12-17 05:44:20 +01:00
change import back
This commit is contained in:
12
import.go
12
import.go
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user