From 8a581ababd2332194db557c894e0a4300f12959d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 22 Aug 2019 19:13:07 +0100 Subject: [PATCH] Actor within cache --- inbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 55fa1869..06112ae0 100644 --- a/inbox.py +++ b/inbox.py @@ -608,7 +608,7 @@ def personReceiveUpdate(baseDir: str, \ # check that the public keys match. # If they don't then this may be a nefarious attempt to hack an account if personCache.get(personJson['id']): - if personCache[personJson['id']]['publicKey']['publicKeyPem']!=personJson['publicKey']['publicKeyPem']: + if personCache[personJson['id']]['actor']['publicKey']['publicKeyPem']!=personJson['publicKey']['publicKeyPem']: if debug: print('WARN: Public key does not match when updating actor') return False