replaceable eventの場合はneventを表示しない

This commit is contained in:
studiokaiji
2023-10-10 14:54:51 +09:00
parent 287557f06f
commit e374e93644

View File

@@ -58,13 +58,10 @@ func main() {
fmt.Println("index.html:")
fmt.Println(" - event.id:", id)
label := " - "
if replaceable {
label += "naddr"
} else {
label += "nevent"
if !replaceable {
label := " - nevent"
fmt.Printf("%s: %s\n", label, encoded)
}
fmt.Printf("%s: %s\n", label, encoded)
}
return err
},