X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Fmoderation.ts;h=55f7a985dee6b0ccf941dcdadab47cea01873467;hb=97b65ce58aaacbbfec2291f18fb95a9da9eb5263;hp=b609f45851be220e74d153a8784f2dc378f9de41;hpb=b4055e1c23eeefb0c8a85a77f312b2827d98f483;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/moderation.ts b/server/lib/moderation.ts index b609f4585..55f7a985d 100644 --- a/server/lib/moderation.ts +++ b/server/lib/moderation.ts @@ -15,41 +15,41 @@ export type AcceptResult = { // Can be filtered by plugins function isLocalVideoAccepted (object: { - videoBody: VideoCreate, - videoFile: Express.Multer.File & { duration?: number }, + videoBody: VideoCreate + videoFile: Express.Multer.File & { duration?: number } user: UserModel }): AcceptResult { return { accepted: true } } function isLocalVideoThreadAccepted (_object: { - commentBody: VideoCommentCreate, - video: VideoModel, + commentBody: VideoCommentCreate + video: VideoModel user: UserModel }): AcceptResult { return { accepted: true } } function isLocalVideoCommentReplyAccepted (_object: { - commentBody: VideoCommentCreate, - parentComment: VideoCommentModel, - video: VideoModel, + commentBody: VideoCommentCreate + parentComment: VideoCommentModel + video: VideoModel user: UserModel }): AcceptResult { return { accepted: true } } function isRemoteVideoAccepted (_object: { - activity: ActivityCreate, - videoAP: VideoTorrentObject, + activity: ActivityCreate + videoAP: VideoTorrentObject byActor: ActorModel }): AcceptResult { return { accepted: true } } function isRemoteVideoCommentAccepted (_object: { - activity: ActivityCreate, - commentAP: VideoCommentObject, + activity: ActivityCreate + commentAP: VideoCommentObject byActor: ActorModel }): AcceptResult { return { accepted: true }