fix nostrudel URL for rendering events and replace it with coracle for calendars.

This commit is contained in:
fiatjaf
2024-01-11 21:07:31 -03:00
parent 7ae564679a
commit a8bf61ea2e
3 changed files with 19 additions and 8 deletions

View File

@@ -81,7 +81,14 @@ func renderProfile(w http.ResponseWriter, r *http.Request, code string) {
Nprofile: data.nprofile,
AuthorRelays: data.authorRelays,
LastNotes: data.renderableLastNotes,
Clients: generateClientList(data.event.Kind, data.metadata.Npub()),
Clients: generateClientList(data.event.Kind, data.metadata.Npub(),
func(c ClientReference, s string) string {
if c == nostrudel {
s = strings.Replace(s, "/n/", "/u/", 1)
}
return s
},
),
}).Render(r.Context(), w)
}