forked from mirrors/bookwyrm
fixes bug in update user public key
This commit is contained in:
parent
1ae3830ae4
commit
9989641f4c
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ def has_valid_signature(request, activity):
|
||||||
except ValueError:
|
except ValueError:
|
||||||
old_key = remote_user.key_pair.public_key
|
old_key = remote_user.key_pair.public_key
|
||||||
activitypub.resolve_remote_id(
|
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:
|
if remote_user.key_pair.public_key == old_key:
|
||||||
raise # Key unchanged.
|
raise # Key unchanged.
|
||||||
|
|
Loading…
Reference in a new issue