1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Fix broken local actors

Some channels can't federate because they don't have public/private
keys, maybe because the generation failed for various reasons
This commit is contained in:
Chocobozzz 2021-02-26 14:22:25 +01:00
parent 92315d979c
commit 8795d6f254
No known key found for this signature in database
GPG key ID: 583A612D890159BE
11 changed files with 90 additions and 26 deletions

View file

@ -7,6 +7,7 @@ import {
ActivitypubHttpBroadcastPayload,
ActivitypubHttpFetcherPayload,
ActivitypubHttpUnicastPayload,
ActorKeysPayload,
EmailPayload,
JobState,
JobType,
@ -25,6 +26,7 @@ import { processActivityPubHttpBroadcast } from './handlers/activitypub-http-bro
import { processActivityPubHttpFetcher } from './handlers/activitypub-http-fetcher'
import { processActivityPubHttpUnicast } from './handlers/activitypub-http-unicast'
import { refreshAPObject } from './handlers/activitypub-refresher'
import { processActorKeys } from './handlers/actor-keys'
import { processEmail } from './handlers/email'
import { processVideoFileImport } from './handlers/video-file-import'
import { processVideoImport } from './handlers/video-import'
@ -44,6 +46,7 @@ type CreateJobArgument =
{ type: 'activitypub-refresher', payload: RefreshPayload } |
{ type: 'videos-views', payload: {} } |
{ type: 'video-live-ending', payload: VideoLiveEndingPayload } |
{ type: 'actor-keys', payload: ActorKeysPayload } |
{ type: 'video-redundancy', payload: VideoRedundancyPayload }
type CreateJobOptions = {
@ -63,6 +66,7 @@ const handlers: { [id in JobType]: (job: Bull.Job) => Promise<any> } = {
'videos-views': processVideosViews,
'activitypub-refresher': refreshAPObject,
'video-live-ending': processVideoLiveEnding,
'actor-keys': processActorKeys,
'video-redundancy': processVideoRedundancy
}
@ -78,6 +82,7 @@ const jobTypes: JobType[] = [
'videos-views',
'activitypub-refresher',
'video-redundancy',
'actor-keys',
'video-live-ending'
]