don't sanitize public key

This commit is contained in:
Daniel Lugo 2020-06-10 13:13:21 -04:00
parent e6fd66a8c3
commit e1eade2452

View file

@ -1235,7 +1235,7 @@ const follow = (publicKey, isPrivate) => {
require('../Mediator') require('../Mediator')
.getUser() .getUser()
.get(Key.FOLLOWS) .get(Key.FOLLOWS)
.get(`$$__PK__${publicKey}`) .get(publicKey)
// @ts-ignore // @ts-ignore
.put(newFollow, ack => { .put(newFollow, ack => {
if (ack.err) { if (ack.err) {
@ -1256,7 +1256,7 @@ const unfollow = publicKey =>
require('../Mediator') require('../Mediator')
.getUser() .getUser()
.get(Key.FOLLOWS) .get(Key.FOLLOWS)
.get(`$$__PK__${publicKey}`) .get(publicKey)
.put(null, ack => { .put(null, ack => {
if (ack.err) { if (ack.err) {
rej(new Error(ack.err)) rej(new Error(ack.err))