From 6f720274e7a80256d31f8e6cd74f49f243b610f1 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 16 Jan 2024 09:45:12 -0300 Subject: [PATCH] link to nprofile on clients instead of npub. --- render_profile.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/render_profile.go b/render_profile.go index 64f5b01..8f2101a 100644 --- a/render_profile.go +++ b/render_profile.go @@ -81,11 +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.nprofile, func(c ClientReference, s string) string { if c == nostrudel { s = strings.Replace(s, "/n/", "/u/", 1) } + if c == primalWeb { + s = strings.Replace(s, data.nprofile, data.metadata.Npub(), 1) + } return s }, ),