Add support for live events, kind:30311

This commit is contained in:
Daniele Tonon
2023-11-06 23:28:20 +01:00
parent 6d6defa419
commit b5a4cfdfdb
5 changed files with 224 additions and 0 deletions

View File

@@ -163,6 +163,12 @@ func generateClientList(style Style, code string, event *nostr.Event) []ClientRe
{ID: "snort", Name: "Snort", URL: template.URL("https://snort.social/p/" + code)},
{ID: "coracle", Name: "Coracle", URL: template.URL("https://coracle.social/" + code)},
}
} else if event.Kind == 30311 {
return []ClientReference{
{ID: "native", Name: "your native client", URL: template.URL("nostr:" + code)},
{ID: "zap.stream", Name: "zap.stream", URL: template.URL("https://zap.stream/" + code)},
{ID: "nostrudel", Name: "Nostrudel", URL: template.URL("https://nostrudel.ninja/#/streams/" + code)},
}
}
return nil
}