mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Tweak inbox activity processing
This commit is contained in:
parent
55eb4e6391
commit
e55dc652ee
1 changed files with 7 additions and 1 deletions
|
@ -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}"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue