forked from Mirrors/doipjs
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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Fixed
|
||||||
|
- Ignore OpenPGP users without userId
|
||||||
|
|
||||||
## [1.0.0] - 2023-07-13
|
## [1.0.0] - 2023-07-13
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -292,6 +292,8 @@ export async function parsePublicKey (publicKey) {
|
||||||
const personas = []
|
const personas = []
|
||||||
|
|
||||||
users.forEach((user, i) => {
|
users.forEach((user, i) => {
|
||||||
|
if (!user.userID) return
|
||||||
|
|
||||||
const pe = new Persona(user.userID.name, [])
|
const pe = new Persona(user.userID.name, [])
|
||||||
pe.setIdentifier(user.userID.userID)
|
pe.setIdentifier(user.userID.userID)
|
||||||
pe.setDescription(user.userID.comment)
|
pe.setDescription(user.userID.comment)
|
||||||
|
|
Loading…
Reference in a new issue