From ee02b97ed5c6c1043a17913637b4a0573879105d Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Wed, 5 May 2021 10:07:17 +0200 Subject: [PATCH] Remove faulty claims before rendering the page --- server/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/index.js b/server/index.js index 4e45938..a4b80f2 100644 --- a/server/index.js +++ b/server/index.js @@ -136,6 +136,11 @@ const generateKeybaseProfile = async (username, fingerprint) => { const processKeyData = (keyData) => { keyData.users.forEach(user => { + // Remove faulty claims + user.claims = user.claims.filter(claim => { + return claim instanceof doip.Claim + }) + // Match claims user.claims.forEach(claim => { claim.match()