From 668a9da9a9e3e420d217c2e15afc81e16da4d6ad Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 10 Jun 2020 11:47:43 -0400 Subject: [PATCH] sanitize public key --- services/gunDB/contact-api/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/gunDB/contact-api/actions.js b/services/gunDB/contact-api/actions.js index 36b39716..455792cf 100644 --- a/services/gunDB/contact-api/actions.js +++ b/services/gunDB/contact-api/actions.js @@ -1235,7 +1235,7 @@ const follow = (publicKey, isPrivate) => { require('../Mediator') .getUser() .get(Key.FOLLOWS) - .get(publicKey) + .get(`$$__PK__${publicKey}`) // @ts-ignore .put(newFollow, ack => { if (ack.err) { @@ -1256,7 +1256,7 @@ const unfollow = publicKey => require('../Mediator') .getUser() .get(Key.FOLLOWS) - .get(publicKey) + .get(`$$__PK__${publicKey}`) .put(null, ack => { if (ack.err) { rej(new Error(ack.err))