diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-16 17:04:19 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | 21e0727a84734cb0c81c1c9bb22a49b13e46fe5f (patch) | |
tree | 088da51cadbffe3ac64414b407e161f58b53bde7 /server/models/video/video-abuse-interface.ts | |
parent | d7d5611c8a23de9b483f0437ad3469afef7b8805 (diff) | |
download | PeerTube-21e0727a84734cb0c81c1c9bb22a49b13e46fe5f.tar.gz PeerTube-21e0727a84734cb0c81c1c9bb22a49b13e46fe5f.tar.zst PeerTube-21e0727a84734cb0c81c1c9bb22a49b13e46fe5f.zip |
Federate video abuses
Diffstat (limited to 'server/models/video/video-abuse-interface.ts')
-rw-r--r-- | server/models/video/video-abuse-interface.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/models/video/video-abuse-interface.ts b/server/models/video/video-abuse-interface.ts index 96f0fbe4a..feafc4a19 100644 --- a/server/models/video/video-abuse-interface.ts +++ b/server/models/video/video-abuse-interface.ts | |||
@@ -5,15 +5,18 @@ import { VideoAbuse as FormattedVideoAbuse } from '../../../shared/models/videos | |||
5 | import { AccountInstance } from '../account/account-interface' | 5 | import { AccountInstance } from '../account/account-interface' |
6 | import { ServerInstance } from '../server/server-interface' | 6 | import { ServerInstance } from '../server/server-interface' |
7 | import { VideoInstance } from './video-interface' | 7 | import { VideoInstance } from './video-interface' |
8 | import { VideoAbuseObject } from '../../../shared/models/activitypub/objects/video-abuse-object' | ||
8 | 9 | ||
9 | export namespace VideoAbuseMethods { | 10 | export namespace VideoAbuseMethods { |
10 | export type ToFormattedJSON = (this: VideoAbuseInstance) => FormattedVideoAbuse | 11 | export type ToFormattedJSON = (this: VideoAbuseInstance) => FormattedVideoAbuse |
11 | 12 | ||
12 | export type ListForApi = (start: number, count: number, sort: string) => Promise< ResultList<VideoAbuseInstance> > | 13 | export type ListForApi = (start: number, count: number, sort: string) => Promise< ResultList<VideoAbuseInstance> > |
14 | export type ToActivityPubObject = () => VideoAbuseObject | ||
13 | } | 15 | } |
14 | 16 | ||
15 | export interface VideoAbuseClass { | 17 | export interface VideoAbuseClass { |
16 | listForApi: VideoAbuseMethods.ListForApi | 18 | listForApi: VideoAbuseMethods.ListForApi |
19 | toActivityPubObject: VideoAbuseMethods.ToActivityPubObject | ||
17 | } | 20 | } |
18 | 21 | ||
19 | export interface VideoAbuseAttributes { | 22 | export interface VideoAbuseAttributes { |