mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 14:24:27 +01:00
link to nprofile on clients instead of npub.
This commit is contained in:
@@ -81,11 +81,14 @@ func renderProfile(w http.ResponseWriter, r *http.Request, code string) {
|
|||||||
Nprofile: data.nprofile,
|
Nprofile: data.nprofile,
|
||||||
AuthorRelays: data.authorRelays,
|
AuthorRelays: data.authorRelays,
|
||||||
LastNotes: data.renderableLastNotes,
|
LastNotes: data.renderableLastNotes,
|
||||||
Clients: generateClientList(data.event.Kind, data.metadata.Npub(),
|
Clients: generateClientList(data.event.Kind, data.nprofile,
|
||||||
func(c ClientReference, s string) string {
|
func(c ClientReference, s string) string {
|
||||||
if c == nostrudel {
|
if c == nostrudel {
|
||||||
s = strings.Replace(s, "/n/", "/u/", 1)
|
s = strings.Replace(s, "/n/", "/u/", 1)
|
||||||
}
|
}
|
||||||
|
if c == primalWeb {
|
||||||
|
s = strings.Replace(s, data.nprofile, data.metadata.Npub(), 1)
|
||||||
|
}
|
||||||
return s
|
return s
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user