mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-18 14:54:24 +01:00
get rid of shouldUseRelayForNip19(), use isntRealRelay().
This commit is contained in:
12
data.go
12
data.go
@@ -203,11 +203,13 @@ func grabData(ctx context.Context, code string, isProfileSitemap bool) (*Data, e
|
||||
relaysForNip19 := make([]string, 0, 3)
|
||||
c := 0
|
||||
for _, relayUrl := range relays {
|
||||
if shouldUseRelayForNip19(relayUrl) {
|
||||
relaysForNip19 = append(relaysForNip19, relayUrl)
|
||||
if c == 2 {
|
||||
break
|
||||
}
|
||||
if isntRealRelay(relayUrl) {
|
||||
continue
|
||||
}
|
||||
|
||||
relaysForNip19 = append(relaysForNip19, relayUrl)
|
||||
if c == 2 {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user