mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
fix: ignore OpenPGP users without userId
This commit is contained in:
parent
0dfb0bc38a
commit
09b052c7b9
2 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
### Fixed
|
||||
- Ignore OpenPGP users without userId
|
||||
|
||||
## [1.0.0] - 2023-07-13
|
||||
### Changed
|
||||
|
|
|
@ -292,6 +292,8 @@ export async function parsePublicKey (publicKey) {
|
|||
const personas = []
|
||||
|
||||
users.forEach((user, i) => {
|
||||
if (!user.userID) return
|
||||
|
||||
const pe = new Persona(user.userID.name, [])
|
||||
pe.setIdentifier(user.userID.userID)
|
||||
pe.setDescription(user.userID.comment)
|
||||
|
|
Loading…
Reference in a new issue