diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-23 16:14:33 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-24 09:40:46 +0100 |
commit | a219c9100b3ce8774d454497d46be87465bf664e (patch) | |
tree | caa869e47919a9e23cc86dcece1100e239683b8c /shared/models/server/job.model.ts | |
parent | 7e98a7df7d04e19ba67163a86c7b876d78d76839 (diff) | |
download | PeerTube-a219c9100b3ce8774d454497d46be87465bf664e.tar.gz PeerTube-a219c9100b3ce8774d454497d46be87465bf664e.tar.zst PeerTube-a219c9100b3ce8774d454497d46be87465bf664e.zip |
Refactor AP context builder
Diffstat (limited to 'shared/models/server/job.model.ts')
-rw-r--r-- | shared/models/server/job.model.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts index 91469d010..92d1b5698 100644 --- a/shared/models/server/job.model.ts +++ b/shared/models/server/job.model.ts | |||
@@ -40,9 +40,9 @@ export interface Job { | |||
40 | 40 | ||
41 | export type ActivitypubHttpBroadcastPayload = { | 41 | export type ActivitypubHttpBroadcastPayload = { |
42 | uris: string[] | 42 | uris: string[] |
43 | signatureActorId?: number | 43 | contextType: ContextType |
44 | body: any | 44 | body: any |
45 | contextType?: ContextType | 45 | signatureActorId?: number |
46 | } | 46 | } |
47 | 47 | ||
48 | export type ActivitypubFollowPayload = { | 48 | export type ActivitypubFollowPayload = { |
@@ -62,9 +62,9 @@ export type ActivitypubHttpFetcherPayload = { | |||
62 | 62 | ||
63 | export type ActivitypubHttpUnicastPayload = { | 63 | export type ActivitypubHttpUnicastPayload = { |
64 | uri: string | 64 | uri: string |
65 | contextType: ContextType | ||
65 | signatureActorId?: number | 66 | signatureActorId?: number |
66 | body: object | 67 | body: object |
67 | contextType?: ContextType | ||
68 | } | 68 | } |
69 | 69 | ||
70 | export type RefreshPayload = { | 70 | export type RefreshPayload = { |