From c747d39c7d6531d313018fcce63bcf28f14ae726 Mon Sep 17 00:00:00 2001
From: Yarmo Mackenbach <yarmo@yarmo.eu>
Date: Tue, 4 May 2021 13:20:25 +0200
Subject: [PATCH] Fix bloated response

---
 server/index.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/server/index.js b/server/index.js
index 4015959..883c422 100644
--- a/server/index.js
+++ b/server/index.js
@@ -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 {