Tweak inbox activity processing

main
Thomas Sileo 2022-08-21 21:06:33 +02:00
parent 55eb4e6391
commit e55dc652ee
1 changed files with 7 additions and 1 deletions

View File

@ -1766,7 +1766,13 @@ async def save_to_inbox(
)
forwarded_by_actor = await fetch_actor(db_session, sent_by_ap_actor_id)
if not (await ldsig.verify_signature(db_session, raw_object)):
is_sig_verified = False
try:
is_sig_verified = await ldsig.verify_signature(db_session, raw_object)
except Exception:
logger.exception("Failed to verify LD sig")
if not is_sig_verified:
logger.warning(
f"Failed to verify LD sig, fetching remote object {raw_object_id}"
)