Tweak the tasks

This commit is contained in:
Thomas Sileo 2018-07-11 22:00:18 +02:00
parent a36b56af4e
commit a7bc6fa1a2

View file

@ -95,8 +95,9 @@ class MicroblogPubBackend(Backend):
}
)
tasks.process_new_activity.delay(activity.id)
tasks.cache_attachments(activity.id)
if box == Box.INBOX:
tasks.process_new_activity.delay(activity.id)
@ensure_it_is_me
def outbox_new(self, as_actor: ap.Person, activity: ap.BaseActivity) -> None: