mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-18 14:54:24 +01:00
add highlighter.
This commit is contained in:
9
utils.go
9
utils.go
@@ -107,9 +107,7 @@ func generateClientList(code string, event *nostr.Event) []ClientReference {
|
||||
{Name: "Agora", URL: "https://agorasocial.app/" + code},
|
||||
{Name: "Iris", URL: "https://iris.to/" + code},
|
||||
{Name: "Yosup", URL: "https://yosup.app/thread/" + event.ID},
|
||||
{Name: "Nostr.band", URL: "https://nostr.band/" + code},
|
||||
{Name: "Nostribe", URL: "https://www.nostribe.com/post/" + event.ID},
|
||||
{Name: "Nostrid", URL: "https://web.nostrid.app/note/" + event.ID},
|
||||
{Name: "Highlighter", URL: "https://highlighter.com/a/" + code},
|
||||
}
|
||||
} else if strings.HasPrefix(code, "npub") || strings.HasPrefix(code, "nprofile") {
|
||||
return []ClientReference{
|
||||
@@ -121,15 +119,14 @@ func generateClientList(code string, event *nostr.Event) []ClientReference {
|
||||
{Name: "Agora", URL: "https://agorasocial.app/" + code},
|
||||
{Name: "Iris", URL: "https://iris.to/" + code},
|
||||
{Name: "Yosup", URL: "https://yosup.app/profile/" + event.PubKey},
|
||||
{Name: "Nostr.band", URL: "https://nostr.band/" + code},
|
||||
{Name: "Nostribe", URL: "https://www.nostribe.com/profile/" + event.PubKey},
|
||||
{Name: "Nostrid", URL: "https://web.nostrid.app/account/" + event.PubKey},
|
||||
{Name: "Highlighter", URL: "https://highlighter.com/p/" + event.PubKey},
|
||||
}
|
||||
} else if strings.HasPrefix(code, "naddr") {
|
||||
return []ClientReference{
|
||||
{Name: "Your native client", URL: "nostr:" + code},
|
||||
{Name: "YakiHonne", URL: "https://yakihonne.com/article/" + code},
|
||||
{Name: "Habla", URL: "https://habla.news/a/" + code},
|
||||
{Name: "Highlighter", URL: "https://highlighter.com/a/" + code},
|
||||
{Name: "Blogstack", URL: "https://blogstack.io/" + code},
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user