aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/activitypub
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-17 15:52:26 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:52 +0100
commit79d5caf994edd87ad721994490f10677be277497 (patch)
tree0db45893d8b78e34ce3d59849d0a331977a63d4b /shared/models/activitypub
parent572f8d3dba44ba874f5c51023214273e3f5b643c (diff)
downloadPeerTube-79d5caf994edd87ad721994490f10677be277497.tar.gz
PeerTube-79d5caf994edd87ad721994490f10677be277497.tar.zst
PeerTube-79d5caf994edd87ad721994490f10677be277497.zip
Fix lint
Diffstat (limited to 'shared/models/activitypub')
-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}