PeerTube/server/lib/activitypub/fetch.ts

15 lines
329 B
TypeScript
Raw Normal View History

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