mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-08 16:48:51 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dff57c207e | ||
|
|
c3777abd81 |
2
event.go
2
event.go
@@ -85,7 +85,7 @@ standalone:
|
||||
tags := make([][]string, 0, 5)
|
||||
for _, tagFlag := range c.StringSlice("tag") {
|
||||
spl := strings.Split(tagFlag, "=")
|
||||
if len(spl) == 2 && len(spl[0]) == 1 {
|
||||
if len(spl) == 2 && len(spl[0]) > 0 {
|
||||
tags = append(tags, spl)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,11 +41,11 @@ object Components {
|
||||
),
|
||||
entry(
|
||||
"npub",
|
||||
NIP19.encode(XOnlyPublicKey(bytes32))
|
||||
NIP19.encode(PrivateKey(bytes32).publicKey.xonly)
|
||||
),
|
||||
nip19_21(
|
||||
"nprofile",
|
||||
NIP19.encode(ProfilePointer(XOnlyPublicKey(bytes32)))
|
||||
NIP19.encode(ProfilePointer(PrivateKey(bytes32).publicKey.xonly))
|
||||
)
|
||||
),
|
||||
"if this is an event id:",
|
||||
|
||||
Reference in New Issue
Block a user