mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Tweak the tasks
This commit is contained in:
parent
a36b56af4e
commit
a7bc6fa1a2
1 changed files with 2 additions and 1 deletions
|
@ -95,8 +95,9 @@ class MicroblogPubBackend(Backend):
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
tasks.process_new_activity.delay(activity.id)
|
|
||||||
tasks.cache_attachments(activity.id)
|
tasks.cache_attachments(activity.id)
|
||||||
|
if box == Box.INBOX:
|
||||||
|
tasks.process_new_activity.delay(activity.id)
|
||||||
|
|
||||||
@ensure_it_is_me
|
@ensure_it_is_me
|
||||||
def outbox_new(self, as_actor: ap.Person, activity: ap.BaseActivity) -> None:
|
def outbox_new(self, as_actor: ap.Person, activity: ap.BaseActivity) -> None:
|
||||||
|
|
Loading…
Reference in a new issue