mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-28 17:53:32 +02:00
sdk: hint tracker to use new nip27 parser.
This commit is contained in:
parent
a88b34ed3c
commit
14beb34363
@ -18,6 +18,7 @@ func (sys *System) TrackQueryAttempts(relay string, author string, kind int) {
|
|||||||
if kind == 0 || kind == 10002 || kind == 3 {
|
if kind == 0 || kind == 10002 || kind == 3 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
sys.Hints.Save(author, relay, hints.LastFetchAttempt, nostr.Now())
|
sys.Hints.Save(author, relay, hints.LastFetchAttempt, nostr.Now())
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +106,7 @@ func (sys *System) trackEventHints(ie nostr.RelayEvent) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for ref := range nip27.ParseReferences(*ie.Event) {
|
for ref := range nip27.Parse(ie.Event.Content) {
|
||||||
switch pointer := ref.Pointer.(type) {
|
switch pointer := ref.Pointer.(type) {
|
||||||
case nostr.ProfilePointer:
|
case nostr.ProfilePointer:
|
||||||
for _, relay := range pointer.Relays {
|
for _, relay := range pointer.Relays {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user