mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Begin moving video channel to actor
This commit is contained in:
parent
fadf619ad6
commit
50d6de9c28
100 changed files with 1761 additions and 2041 deletions
|
@ -1,10 +1,10 @@
|
|||
import { Transaction } from 'sequelize'
|
||||
import { AccountModel } from '../../models/account/account'
|
||||
import { ActorModel } from '../../models/activitypub/actor'
|
||||
import { activitypubHttpJobScheduler, ActivityPubHttpPayload } from '../jobs/activitypub-http-job-scheduler'
|
||||
|
||||
async function addFetchOutboxJob (account: AccountModel, t: Transaction) {
|
||||
async function addFetchOutboxJob (actor: ActorModel, t: Transaction) {
|
||||
const jobPayload: ActivityPubHttpPayload = {
|
||||
uris: [ account.outboxUrl ]
|
||||
uris: [ actor.outboxUrl ]
|
||||
}
|
||||
|
||||
return activitypubHttpJobScheduler.createJob(t, 'activitypubHttpFetcherHandler', jobPayload)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue