mirror of
https://github.com/aljazceru/haven.git
synced 2025-12-18 22:24:22 +01:00
increase tagged import
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
@@ -110,7 +105,6 @@ func importTaggedNotes() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
func subscribeInbox() {
|
func subscribeInbox() {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|||||||
Reference in New Issue
Block a user