aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/activitypub/activity.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/shared/models/activitypub/activity.ts b/shared/models/activitypub/activity.ts
index 2e6feeb16..255cdd43c 100644
--- a/shared/models/activitypub/activity.ts
+++ b/shared/models/activitypub/activity.ts
@@ -2,11 +2,11 @@ import { VideoChannelObject, VideoTorrentObject } from './objects'
2import { ActivityPubSignature } from './activitypub-signature' 2import { ActivityPubSignature } from './activitypub-signature'
3import { VideoAbuseObject } from './objects/video-abuse-object' 3import { VideoAbuseObject } from './objects/video-abuse-object'
4 4
5export type Activity = ActivityCreate | ActivityAdd | ActivityUpdate | ActivityFlag | 5export type Activity = ActivityCreate | ActivityAdd | ActivityUpdate |
6 ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce 6 ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce
7 7
8// Flag -> report abuse 8// Flag -> report abuse
9export type ActivityType = 'Create' | 'Add' | 'Update' | 'Flag' | 'Delete' | 'Follow' | 'Accept' | 'Announce' 9export type ActivityType = 'Create' | 'Add' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce'
10 10
11export interface BaseActivity { 11export interface BaseActivity {
12 '@context'?: any[] 12 '@context'?: any[]
@@ -34,11 +34,6 @@ export interface ActivityUpdate extends BaseActivity {
34 object: VideoTorrentObject | VideoChannelObject 34 object: VideoTorrentObject | VideoChannelObject
35} 35}
36 36
37export interface ActivityFlag extends BaseActivity {
38 type: 'Flag'
39 object: string
40}
41
42export interface ActivityDelete extends BaseActivity { 37export interface ActivityDelete extends BaseActivity {
43 type: 'Delete' 38 type: 'Delete'
44} 39}