]>
Commit | Line | Data |
---|---|---|
1 | import { ActorModel } from '../../models/activitypub/actor' | |
2 | import { JobQueue } from '../job-queue' | |
3 | ||
4 | async function addFetchOutboxJob (actor: ActorModel) { | |
5 | const payload = { | |
6 | uris: [ actor.outboxUrl ] | |
7 | } | |
8 | ||
9 | return JobQueue.Instance.createJob({ type: 'activitypub-http-fetcher', payload }) | |
10 | } | |
11 | ||
12 | export { | |
13 | addFetchOutboxJob | |
14 | } |