aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/fetch.ts
blob: b1b370a1af99df4b1bb0ec3211108bb0f0a2923d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { ActorModel } from '../../models/activitypub/actor'
import { JobQueue } from '../job-queue'

async function addFetchOutboxJob (actor: ActorModel) {
  const payload = {
    uris: [ actor.outboxUrl ]
  }

  return JobQueue.Instance.createJob({ type: 'activitypub-http-fetcher', payload })
}

export {
  addFetchOutboxJob
}