diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-14 17:38:41 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-19 10:53:16 +0100 |
commit | 50d6de9c286abcb34ff4234d56d9cbb803db7665 (patch) | |
tree | f1732b27edcd05c7877a8358b8312f1e38c287ed /shared/models/activitypub/activity.ts | |
parent | fadf619ad61a016c1c7fc53de5a8f398a4f77519 (diff) | |
download | PeerTube-50d6de9c286abcb34ff4234d56d9cbb803db7665.tar.gz PeerTube-50d6de9c286abcb34ff4234d56d9cbb803db7665.tar.zst PeerTube-50d6de9c286abcb34ff4234d56d9cbb803db7665.zip |
Begin moving video channel to actor
Diffstat (limited to 'shared/models/activitypub/activity.ts')
-rw-r--r-- | shared/models/activitypub/activity.ts | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/shared/models/activitypub/activity.ts b/shared/models/activitypub/activity.ts index 37f5400b9..1d248d3d7 100644 --- a/shared/models/activitypub/activity.ts +++ b/shared/models/activitypub/activity.ts | |||
@@ -1,14 +1,14 @@ | |||
1 | import { ActivityPubSignature } from './activitypub-signature' | 1 | import { ActivityPubSignature } from './activitypub-signature' |
2 | import { VideoChannelObject, VideoTorrentObject } from './objects' | 2 | import { VideoTorrentObject } from './objects' |
3 | import { DislikeObject } from './objects/dislike-object' | 3 | import { DislikeObject } from './objects/dislike-object' |
4 | import { VideoAbuseObject } from './objects/video-abuse-object' | 4 | import { VideoAbuseObject } from './objects/video-abuse-object' |
5 | import { ViewObject } from './objects/view-object' | 5 | import { ViewObject } from './objects/view-object' |
6 | 6 | ||
7 | export type Activity = ActivityCreate | ActivityAdd | ActivityUpdate | | 7 | export type Activity = ActivityCreate | ActivityUpdate | |
8 | ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce | | 8 | ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce | |
9 | ActivityUndo | ActivityLike | 9 | ActivityUndo | ActivityLike |
10 | 10 | ||
11 | export type ActivityType = 'Create' | 'Add' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like' | 11 | export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like' |
12 | 12 | ||
13 | export interface ActivityAudience { | 13 | export interface ActivityAudience { |
14 | to: string[] | 14 | to: string[] |
@@ -27,18 +27,12 @@ export interface BaseActivity { | |||
27 | 27 | ||
28 | export interface ActivityCreate extends BaseActivity { | 28 | export interface ActivityCreate extends BaseActivity { |
29 | type: 'Create' | 29 | type: 'Create' |
30 | object: VideoChannelObject | VideoAbuseObject | ViewObject | DislikeObject | 30 | object: VideoTorrentObject | VideoAbuseObject | ViewObject | DislikeObject |
31 | } | ||
32 | |||
33 | export interface ActivityAdd extends BaseActivity { | ||
34 | type: 'Add' | ||
35 | target: string | ||
36 | object: VideoTorrentObject | ||
37 | } | 31 | } |
38 | 32 | ||
39 | export interface ActivityUpdate extends BaseActivity { | 33 | export interface ActivityUpdate extends BaseActivity { |
40 | type: 'Update' | 34 | type: 'Update' |
41 | object: VideoTorrentObject | VideoChannelObject | 35 | object: VideoTorrentObject |
42 | } | 36 | } |
43 | 37 | ||
44 | export interface ActivityDelete extends BaseActivity { | 38 | export interface ActivityDelete extends BaseActivity { |
@@ -56,7 +50,7 @@ export interface ActivityAccept extends BaseActivity { | |||
56 | 50 | ||
57 | export interface ActivityAnnounce extends BaseActivity { | 51 | export interface ActivityAnnounce extends BaseActivity { |
58 | type: 'Announce' | 52 | type: 'Announce' |
59 | object: ActivityCreate | ActivityAdd | 53 | object: ActivityCreate |
60 | } | 54 | } |
61 | 55 | ||
62 | export interface ActivityUndo extends BaseActivity { | 56 | export interface ActivityUndo extends BaseActivity { |