Tweak the tasks flow
This commit is contained in:
parent
ac5f349d0f
commit
13cee5dbae
3 changed files with 4 additions and 2 deletions
3
app.py
3
app.py
|
@ -80,9 +80,10 @@ back = activitypub.MicroblogPubBackend()
|
|||
|
||||
|
||||
def save_cb(box: Box, iri: str) -> None:
|
||||
tasks.cache_attachments.delay(iri)
|
||||
if box == Box.INBOX:
|
||||
tasks.process_new_activity.delay(iri)
|
||||
else:
|
||||
tasks.cache_attachments.delay(iri)
|
||||
|
||||
|
||||
back.set_save_cb(save_cb)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue