aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/moderation.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/moderation.ts')
-rw-r--r--server/lib/moderation.ts11
1 files changed, 10 insertions, 1 deletions
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 {
20import { ActivityCreate } from '../../shared/models/activitypub' 20import { ActivityCreate } from '../../shared/models/activitypub'
21import { VideoObject } from '../../shared/models/activitypub/objects' 21import { VideoObject } from '../../shared/models/activitypub/objects'
22import { VideoCommentObject } from '../../shared/models/activitypub/objects/video-comment-object' 22import { VideoCommentObject } from '../../shared/models/activitypub/objects/video-comment-object'
23import { VideoCreate, VideoImportCreate } from '../../shared/models/videos' 23import { LiveVideoCreate, VideoCreate, VideoImportCreate } from '../../shared/models/videos'
24import { VideoCommentCreate } from '../../shared/models/videos/video-comment.model' 24import { VideoCommentCreate } from '../../shared/models/videos/video-comment.model'
25import { UserModel } from '../models/account/user' 25import { UserModel } from '../models/account/user'
26import { ActorModel } from '../models/activitypub/actor' 26import { ActorModel } from '../models/activitypub/actor'
@@ -43,6 +43,13 @@ function isLocalVideoAccepted (object: {
43 return { accepted: true } 43 return { accepted: true }
44} 44}
45 45
46function isLocalLiveVideoAccepted (object: {
47 liveVideoBody: LiveVideoCreate
48 user: UserModel
49}): AcceptResult {
50 return { accepted: true }
51}
52
46function isLocalVideoThreadAccepted (_object: { 53function isLocalVideoThreadAccepted (_object: {
47 commentBody: VideoCommentCreate 54 commentBody: VideoCommentCreate
48 video: VideoModel 55 video: VideoModel
@@ -175,6 +182,8 @@ function createAccountAbuse (options: {
175} 182}
176 183
177export { 184export {
185 isLocalLiveVideoAccepted,
186
178 isLocalVideoAccepted, 187 isLocalVideoAccepted,
179 isLocalVideoThreadAccepted, 188 isLocalVideoThreadAccepted,
180 isRemoteVideoAccepted, 189 isRemoteVideoAccepted,