More query before spawning task
This commit is contained in:
parent
2a726b7dfb
commit
6bb619d6ad
2 changed files with 6 additions and 5 deletions
|
@ -174,9 +174,10 @@ def post_to_inbox(activity: ap.BaseActivity) -> None:
|
|||
return
|
||||
|
||||
save(Box.INBOX, activity)
|
||||
logger.info(f"spawning tasks for {activity!r}")
|
||||
if not activity.has_type(ap.ActivityType.DELETE):
|
||||
Tasks.cache_actor(activity.id)
|
||||
Tasks.process_new_activity(activity.id)
|
||||
|
||||
logger.info(f"spawning task for {activity!r}")
|
||||
Tasks.finish_post_to_inbox(activity.id)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue