Actor within cache

master
Bob Mottram 2019-08-22 19:13:07 +01:00
parent 9017d7c7b8
commit 8a581ababd
1 changed files with 1 additions and 1 deletions

View File

@ -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