diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/activitypub/activity.ts | 9 |
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' | |||
2 | import { ActivityPubSignature } from './activitypub-signature' | 2 | import { ActivityPubSignature } from './activitypub-signature' |
3 | import { VideoAbuseObject } from './objects/video-abuse-object' | 3 | import { VideoAbuseObject } from './objects/video-abuse-object' |
4 | 4 | ||
5 | export type Activity = ActivityCreate | ActivityAdd | ActivityUpdate | ActivityFlag | | 5 | export 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 |
9 | export type ActivityType = 'Create' | 'Add' | 'Update' | 'Flag' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 9 | export type ActivityType = 'Create' | 'Add' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' |
10 | 10 | ||
11 | export interface BaseActivity { | 11 | export 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 | ||
37 | export interface ActivityFlag extends BaseActivity { | ||
38 | type: 'Flag' | ||
39 | object: string | ||
40 | } | ||
41 | |||
42 | export interface ActivityDelete extends BaseActivity { | 37 | export interface ActivityDelete extends BaseActivity { |
43 | type: 'Delete' | 38 | type: 'Delete' |
44 | } | 39 | } |