Fix Keybase profiles

Issue raised in https://codeberg.org/keyoxide/keyoxide-web/issues/137
This commit is contained in:
Yarmo Mackenbach 2022-07-12 16:11:45 +02:00
parent bcb4dc4f8e
commit b99a10461e
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
2 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Added ### Added
- h-card markup to profile pages (thanks to [caesar](https://codeberg.org/caesar) [PR#130](https://codeberg.org/keyoxide/keyoxide-web/pulls/130)) - h-card markup to profile pages (thanks to [caesar](https://codeberg.org/caesar) [PR#130](https://codeberg.org/keyoxide/keyoxide-web/pulls/130))
### Fixed
- Keybase profiles (thanks to [gonz0](https://codeberg.org/gonz0))
## [3.3.1] - 2022-03-15 ## [3.3.1] - 2022-03-15
### Fixed ### Fixed

View file

@ -112,7 +112,7 @@ const generateSignatureProfile = async (signature) => {
} }
const generateKeybaseProfile = async (username, fingerprint) => { const generateKeybaseProfile = async (username, fingerprint) => {
return fetchKeybase(id, keyserverDomain) return fetchKeybase(username, fingerprint)
.then(async key => { .then(async key => {
let keyData = await doipjs.keys.process(key.publicKey) let keyData = await doipjs.keys.process(key.publicKey)
keyData.openpgp4fpr = `openpgp4fpr:${keyData.fingerprint.toLowerCase()}` keyData.openpgp4fpr = `openpgp4fpr:${keyData.fingerprint.toLowerCase()}`