fixes bug in update user public key

This commit is contained in:
Mouse Reeve 2020-12-04 09:46:40 -08:00
parent 1ae3830ae4
commit 9989641f4c

View file

@ -104,7 +104,7 @@ def has_valid_signature(request, activity):
except ValueError:
old_key = remote_user.key_pair.public_key
activitypub.resolve_remote_id(
models.User, remote_user, refresh=True
models.User, remote_user.remote_id, refresh=True
)
if remote_user.key_pair.public_key == old_key:
raise # Key unchanged.