mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Fix bloated response
This commit is contained in:
parent
3a999cccc8
commit
c747d39c7d
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,7 @@ const generateWKDProfile = async (id) => {
|
|||
let keyData = await doip.keys.process(key.publicKey)
|
||||
keyData.key.fetchMethod = 'wkd'
|
||||
keyData.key.uri = key.fetchURL
|
||||
keyData.key.data = null
|
||||
keyData = processKeyData(keyData)
|
||||
|
||||
return {
|
||||
|
@ -62,6 +63,7 @@ const generateHKPProfile = async (id, keyserverDomain) => {
|
|||
let keyData = await doip.keys.process(key.publicKey)
|
||||
keyData.key.fetchMethod = 'hkp'
|
||||
keyData.key.uri = key.fetchURL
|
||||
keyData.key.data = null
|
||||
keyData = processKeyData(keyData)
|
||||
|
||||
return {
|
||||
|
@ -86,6 +88,7 @@ const generateSignatureProfile = async (signature) => {
|
|||
.then(async key => {
|
||||
let keyData = key.keyData
|
||||
delete key.keyData
|
||||
keyData.key.data = null
|
||||
keyData = processKeyData(keyData)
|
||||
|
||||
return {
|
||||
|
@ -111,6 +114,7 @@ const generateKeybaseProfile = async (username, fingerprint) => {
|
|||
let keyData = await doip.keys.process(key.publicKey)
|
||||
keyData.key.fetchMethod = 'hkp'
|
||||
keyData.key.uri = key.fetchURL
|
||||
keyData.key.data = null
|
||||
keyData = processKeyData(keyData)
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue