[fix] get public key type error
All checks were successful
/ run-pytest (push) Successful in 1m26s

This commit is contained in:
SouthFox 2024-03-04 00:34:58 +08:00
parent b7533b566b
commit eff8338f80

View file

@ -80,5 +80,5 @@ async def get_public_key(
models.Actor.ap_id == key_id.split("#")[0])
)
).one_or_none()
public_key = existing_actor.ap_object["publicKey"]["publicKeyPem"]
public_key = existing_actor.ap_actor["publicKey"]["publicKeyPem"]
return public_key