Fix reversed error condition

This commit is contained in:
Jon Staab
2025-10-27 12:05:23 -07:00
parent 6b29526c26
commit 570b5ea073
+1 -1
View File
@@ -131,7 +131,7 @@ func MakeInstance(filename string) (*Instance, error) {
for _, role := range config.Roles {
for _, hex := range role.Pubkeys {
if pubkey, err := nostr.PubKeyFromHex(hex); err != nil {
if pubkey, err := nostr.PubKeyFromHex(hex); err == nil {
instance.Management.AllowPubkey(pubkey)
}
}