aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/activitypub
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/activitypub')
-rw-r--r--shared/models/activitypub/activity.ts3
-rw-r--r--shared/models/activitypub/objects/video-comment-object.ts8
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'
2import { VideoTorrentObject } from './objects' 2import { VideoTorrentObject } from './objects'
3import { DislikeObject } from './objects/dislike-object' 3import { DislikeObject } from './objects/dislike-object'
4import { VideoAbuseObject } from './objects/video-abuse-object' 4import { VideoAbuseObject } from './objects/video-abuse-object'
5import { VideoCommentObject } from './objects/video-comment-object'
5import { ViewObject } from './objects/view-object' 6import { ViewObject } from './objects/view-object'
6 7
7export type Activity = ActivityCreate | ActivityUpdate | 8export type Activity = ActivityCreate | ActivityUpdate |
@@ -27,7 +28,7 @@ export interface BaseActivity {
27 28
28export interface ActivityCreate extends BaseActivity { 29export 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
33export interface ActivityUpdate extends BaseActivity { 34export 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 @@
1export interface VideoCommentObject {
2 type: 'Note'
3 id: string
4 content: string
5 inReplyTo: string
6 published: string
7 url: string
8}