diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-17 15:52:26 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | 79d5caf994edd87ad721994490f10677be277497 (patch) | |
tree | 0db45893d8b78e34ce3d59849d0a331977a63d4b /shared/models | |
parent | 572f8d3dba44ba874f5c51023214273e3f5b643c (diff) | |
download | PeerTube-79d5caf994edd87ad721994490f10677be277497.tar.gz PeerTube-79d5caf994edd87ad721994490f10677be277497.tar.zst PeerTube-79d5caf994edd87ad721994490f10677be277497.zip |
Fix lint
Diffstat (limited to 'shared/models')
-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 | } |