mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-24 04:30:38 +02:00
sdk: hint tracker to use new nip27 parser.
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user