Speed up activity pub http requests

This commit is contained in:
Chocobozzz
2017-11-17 11:35:10 +01:00
parent 1b3989b096
commit afffe98839
26 changed files with 517 additions and 437 deletions

View File

@@ -11,10 +11,10 @@ export type ActivityType = 'Create' | 'Add' | 'Update' | 'Flag' | 'Delete' | 'Fo
export interface BaseActivity {
'@context'?: any[]
id: string
to: string[]
to?: string[]
actor: string
type: ActivityType
signature: ActivityPubSignature
signature?: ActivityPubSignature
}
export interface ActivityCreate extends BaseActivity {

View File

@@ -1,2 +1,2 @@
export type JobState = 'pending' | 'processing' | 'error' | 'success'
export type JobCategory = 'transcoding' | 'http-request'
export type JobCategory = 'transcoding' | 'activitypub-http'