mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-18 14:54:24 +01:00
move redirectors, renderRelay and renderProfile out of render.
This commit is contained in:
4
data.go
4
data.go
@@ -62,7 +62,6 @@ func (ee EnhancedEvent) ModifiedAtStr() string {
|
||||
|
||||
type Data struct {
|
||||
templateId TemplateID
|
||||
typ string
|
||||
event *nostr.Event
|
||||
relays []string
|
||||
npub string
|
||||
@@ -112,7 +111,6 @@ func grabData(ctx context.Context, code string, isProfileSitemap bool) (*Data, e
|
||||
parentNevent := ""
|
||||
authorRelays := []string{}
|
||||
var content string
|
||||
var typ string
|
||||
var templateId TemplateID
|
||||
|
||||
eventRelays := []string{}
|
||||
@@ -133,7 +131,6 @@ func grabData(ctx context.Context, code string, isProfileSitemap bool) (*Data, e
|
||||
key := ""
|
||||
eventsToFetch := 100
|
||||
if isProfileSitemap {
|
||||
typ = "profile_sitemap"
|
||||
key = "lns:" + event.PubKey
|
||||
eventsToFetch = 50000
|
||||
} else {
|
||||
@@ -246,7 +243,6 @@ func grabData(ctx context.Context, code string, isProfileSitemap bool) (*Data, e
|
||||
|
||||
return &Data{
|
||||
templateId: templateId,
|
||||
typ: typ,
|
||||
event: event,
|
||||
relays: eventRelays,
|
||||
npub: npub,
|
||||
|
||||
Reference in New Issue
Block a user