2017-12-14 11:38:41 -05:00
|
|
|
import { ActorModel } from '../../models/activitypub/actor'
|
2018-01-25 09:05:18 -05:00
|
|
|
import { JobQueue } from '../job-queue'
|
2017-11-22 04:29:55 -05:00
|
|
|
|
2018-01-25 09:05:18 -05:00
|
|
|
async function addFetchOutboxJob (actor: ActorModel) {
|
|
|
|
const payload = {
|
2017-12-14 11:38:41 -05:00
|
|
|
uris: [ actor.outboxUrl ]
|
2017-11-22 04:29:55 -05:00
|
|
|
}
|
|
|
|
|
2018-01-25 09:05:18 -05:00
|
|
|
return JobQueue.Instance.createJob({ type: 'activitypub-http-fetcher', payload })
|
2017-11-22 04:29:55 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export {
|
|
|
|
addFetchOutboxJob
|
|
|
|
}
|