Fix keybase key fetching

This commit is contained in:
Yarmo Mackenbach 2021-05-03 10:16:05 +02:00
parent 3bb38e5d2c
commit 892eccee7e
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -110,8 +110,9 @@ exports.fetchWKD = (identifier) => {
exports.fetchKeybase = (username, fingerprint) => { exports.fetchKeybase = (username, fingerprint) => {
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
const keyLink = `https://keybase.io/${username}/pgp_keys.asc?fingerprint=${fingerprint}` const keyLink = `https://keybase.io/${username}/pgp_keys.asc?fingerprint=${fingerprint}`
let rawKeyContent
try { try {
const rawKeyContent = await req(opts.keyLink) rawKeyContent = await req(keyLink)
.then((response) => { .then((response) => {
if (response.status === 200) { if (response.status === 200) {
return response return response