mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-31 03:34:37 +01:00
fix primal event links.
This commit is contained in:
@@ -20,7 +20,7 @@ var (
|
||||
nosta = ClientReference{ID: "nosta", Name: "Nosta", Base: "https://nosta.me/{code}", Platform: "web"}
|
||||
snort = ClientReference{ID: "snort", Name: "Snort", Base: "https://snort.social/{code}", Platform: "web"}
|
||||
satellite = ClientReference{ID: "satellite", Name: "Satellite", Base: "https://satellite.earth/@{code}", Platform: "web"}
|
||||
primalWeb = ClientReference{ID: "primal", Name: "Primal", Base: "https://primal.net/p/{code}", Platform: "web"}
|
||||
primalWeb = ClientReference{ID: "primal", Name: "Primal", Base: "https://primal.net/e/{code}", Platform: "web"}
|
||||
nostrudel = ClientReference{ID: "nostrudel", Name: "Nostrudel", Base: "https://nostrudel.ninja/#/n/{code}", Platform: "web"}
|
||||
nostter = ClientReference{ID: "nostter", Name: "Nostter", Base: "https://nostter.app/{code}", Platform: "web"}
|
||||
iris = ClientReference{ID: "iris", Name: "Iris", Base: "https://iris.to/{code}", Platform: "web"}
|
||||
|
||||
@@ -87,7 +87,9 @@ func renderProfile(w http.ResponseWriter, r *http.Request, code string) {
|
||||
s = strings.Replace(s, "/n/", "/u/", 1)
|
||||
}
|
||||
if c == primalWeb {
|
||||
s = strings.Replace(s, data.nprofile, data.metadata.Npub(), 1)
|
||||
s = strings.Replace(
|
||||
strings.Replace(s, "/e/", "/p/", 1),
|
||||
data.nprofile, data.metadata.Npub(), 1)
|
||||
}
|
||||
return s
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user