fix/precheck pubkey

This commit is contained in:
SouthFox 2023-04-02 00:11:30 +08:00
parent 3c9bf07566
commit 702ee4df97

View file

@ -61,7 +61,7 @@ async def inbox_prechecker(
_actor = await fetch_actor(db_session, actor_id) _actor = await fetch_actor(db_session, actor_id)
try: try:
pubkey = _actor["publicKey"]["publicKeyPem"] pubkey = _actor.ap_actor["publicKey"]["publicKeyPem"]
except json.JSONDecodeError: except json.JSONDecodeError:
raise ValueError raise ValueError
except KeyError: except KeyError: