mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 14:24:27 +01:00
Fix rendering of naddr and other events
This commit is contained in:
@@ -111,6 +111,9 @@ func render(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
kindDescription := kindNames[event.Kind]
|
||||
if kindDescription == "" {
|
||||
kindDescription = fmt.Sprintf("Kind %d", event.Kind)
|
||||
}
|
||||
kindNIP := kindNIPS[event.Kind]
|
||||
|
||||
imageMatch := regexp.MustCompile(`https:\/\/[^ ]*\.(gif|jpe?g|png|webp)`).FindStringSubmatch(event.Content)
|
||||
|
||||
Reference in New Issue
Block a user