mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Tweak incoming activity processing
This commit is contained in:
parent
5c7fd1199b
commit
dd50db40d9
1 changed files with 6 additions and 5 deletions
|
@ -81,11 +81,12 @@ async def process_next_incoming_activity(db_session: AsyncSession) -> bool:
|
||||||
next_activity.last_try = now()
|
next_activity.last_try = now()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await save_to_inbox(
|
async with db_session.begin_nested():
|
||||||
db_session,
|
await save_to_inbox(
|
||||||
next_activity.ap_object,
|
db_session,
|
||||||
next_activity.sent_by_ap_actor_id,
|
next_activity.ap_object,
|
||||||
)
|
next_activity.sent_by_ap_actor_id,
|
||||||
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception("Failed")
|
logger.exception("Failed")
|
||||||
next_activity.error = traceback.format_exc()
|
next_activity.error = traceback.format_exc()
|
||||||
|
|
Loading…
Reference in a new issue