mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Add live server hooks
This commit is contained in:
parent
c8f3cfeba7
commit
3cabf3532b
9 changed files with 133 additions and 32 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue