mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Avoir some circular dependencies
This commit is contained in:
parent
7fed637506
commit
8dc8a34ee8
69 changed files with 278 additions and 263 deletions
|
@ -5,14 +5,7 @@ import { doRequest } from '../../../helpers/requests'
|
|||
import { buildGlobalHeaders, buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils'
|
||||
import { BROADCAST_CONCURRENCY, JOB_REQUEST_TIMEOUT } from '../../../initializers/constants'
|
||||
import { ActorFollowScoreCache } from '../../files-cache'
|
||||
import { ContextType } from '@server/helpers/activitypub'
|
||||
|
||||
export type ActivitypubHttpBroadcastPayload = {
|
||||
uris: string[]
|
||||
signatureActorId?: number
|
||||
body: any
|
||||
contextType?: ContextType
|
||||
}
|
||||
import { ActivitypubHttpBroadcastPayload } from '@shared/models'
|
||||
|
||||
async function processActivityPubHttpBroadcast (job: Bull.Job) {
|
||||
logger.info('Processing ActivityPub broadcast in job %d.', job.id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue