diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/activitypub/activity.ts | 3 | ||||
-rw-r--r-- | shared/models/activitypub/objects/video-comment-object.ts | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/shared/models/activitypub/activity.ts b/shared/models/activitypub/activity.ts index d5359eba1..48b52d2cb 100644 --- a/shared/models/activitypub/activity.ts +++ b/shared/models/activitypub/activity.ts | |||
@@ -2,6 +2,7 @@ import { ActivityPubSignature } from './activitypub-signature' | |||
2 | import { 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 { VideoCommentObject } from './objects/video-comment-object' | ||
5 | import { ViewObject } from './objects/view-object' | 6 | import { ViewObject } from './objects/view-object' |
6 | 7 | ||
7 | export type Activity = ActivityCreate | ActivityUpdate | | 8 | export type Activity = ActivityCreate | ActivityUpdate | |
@@ -27,7 +28,7 @@ export interface BaseActivity { | |||
27 | 28 | ||
28 | export interface ActivityCreate extends BaseActivity { | 29 | export interface ActivityCreate extends BaseActivity { |
29 | type: 'Create' | 30 | type: 'Create' |
30 | object: VideoTorrentObject | VideoAbuseObject | ViewObject | DislikeObject | 31 | object: VideoTorrentObject | VideoAbuseObject | ViewObject | DislikeObject | VideoCommentObject |
31 | } | 32 | } |
32 | 33 | ||
33 | export interface ActivityUpdate extends BaseActivity { | 34 | export interface ActivityUpdate extends BaseActivity { |
diff --git a/shared/models/activitypub/objects/video-comment-object.ts b/shared/models/activitypub/objects/video-comment-object.ts new file mode 100644 index 000000000..fc2a9e837 --- /dev/null +++ b/shared/models/activitypub/objects/video-comment-object.ts | |||
@@ -0,0 +1,8 @@ | |||
1 | export interface VideoCommentObject { | ||
2 | type: 'Note' | ||
3 | id: string | ||
4 | content: string | ||
5 | inReplyTo: string | ||
6 | published: string | ||
7 | url: string | ||
8 | } | ||