import { VideoCommentModel } from '../../../models/video/video-comment'
import { VideoShareModel } from '../../../models/video/video-share'
import { getDeleteActivityPubUrl } from '../url'
-import { audiencify, broadcastToActors, broadcastToFollowers, getActorsInvolvedInVideo, getVideoCommentAudience, unicastTo } from './misc'
+import { broadcastToActors, broadcastToFollowers, unicastTo } from './utils'
+import { audiencify, getActorsInvolvedInVideo, getVideoCommentAudience } from '../audience'
+import { logger } from '../../../helpers/logger'
async function sendDeleteVideo (video: VideoModel, t: Transaction) {
+ logger.info('Creating job to broadcast delete of video %s.', video.url)
+
const url = getDeleteActivityPubUrl(video.url)
const byActor = video.VideoChannel.Account.Actor
}
async function sendDeleteActor (byActor: ActorModel, t: Transaction) {
+ logger.info('Creating job to broadcast delete of actor %s.', byActor.url)
+
const url = getDeleteActivityPubUrl(byActor.url)
const data = deleteActivityData(url, byActor.url, byActor)
}
async function sendDeleteVideoComment (videoComment: VideoCommentModel, t: Transaction) {
+ logger.info('Creating job to send delete of comment %s.', videoComment.url)
+
const isVideoOrigin = videoComment.Video.isOwned()
const url = getDeleteActivityPubUrl(videoComment.url)