mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
fix slowness of previous refactors that injected nostr-sdk into this codebase + refactors.
- adjusting many small things related to nostr-sdk usage - fetching profiles in a smarter way - decoupling the logic for rendering profile pages from the `grabData`/`getEvent` flow of other event pages. - incorporating nostr-sdk more holistically, including more hints stuff - improving nostr-sdk itself after some bugs and weird behaviors observed here - set up opentelemetry (should probably remove this later)
This commit is contained in:
@@ -48,7 +48,9 @@ func renderRelayPage(w http.ResponseWriter, r *http.Request) {
|
||||
lastEventAt = time.Unix(int64(lastNotes[0].CreatedAt), 0)
|
||||
}
|
||||
for i, levt := range lastNotes {
|
||||
renderableLastNotes[i] = NewEnhancedEvent(nil, levt, []string{"wss://" + hostname})
|
||||
ee := NewEnhancedEvent(nil, levt)
|
||||
ee.relays = []string{"wss://" + hostname}
|
||||
renderableLastNotes[i] = ee
|
||||
}
|
||||
|
||||
if len(renderableLastNotes) != 0 {
|
||||
|
||||
Reference in New Issue
Block a user