X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Fmoderation.ts;h=0ace2d0218c84dfa836ffb5ba90da0db34ee251f;hb=9cfeb3cf989fffccdfe3e575903dc00baab255b2;hp=0ef26d53d55aa36ba97ce7588f15d20415954480;hpb=de6310b2fcbb8a6b79c546b23dfa1920724faaa7;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/moderation.ts b/server/lib/moderation.ts index 0ef26d53d..0ace2d021 100644 --- a/server/lib/moderation.ts +++ b/server/lib/moderation.ts @@ -20,7 +20,7 @@ import { import { ActivityCreate } from '../../shared/models/activitypub' import { VideoObject } from '../../shared/models/activitypub/objects' import { VideoCommentObject } from '../../shared/models/activitypub/objects/video-comment-object' -import { VideoCreate, VideoImportCreate } from '../../shared/models/videos' +import { LiveVideoCreate, VideoCreate, VideoImportCreate } from '../../shared/models/videos' import { VideoCommentCreate } from '../../shared/models/videos/video-comment.model' import { UserModel } from '../models/account/user' import { ActorModel } from '../models/activitypub/actor' @@ -43,6 +43,13 @@ function isLocalVideoAccepted (object: { return { accepted: true } } +function isLocalLiveVideoAccepted (object: { + liveVideoBody: LiveVideoCreate + user: UserModel +}): AcceptResult { + return { accepted: true } +} + function isLocalVideoThreadAccepted (_object: { commentBody: VideoCommentCreate video: VideoModel @@ -175,6 +182,8 @@ function createAccountAbuse (options: { } export { + isLocalLiveVideoAccepted, + isLocalVideoAccepted, isLocalVideoThreadAccepted, isRemoteVideoAccepted,