import { VideoCommentModel } from '../../../models/video/video-comment'
import { VideoPlaylistModel } from '../../../models/video/video-playlist'
import { APProcessorOptions } from '../../../types/activitypub-processor.model'
-import { MAccountActor, MActor, MActorSignature, MChannelActor, MCommentOwnerVideo } from '../../../types/models'
+import {
+ MAccountActor,
+ MActor,
+ MActorFull,
+ MActorSignature,
+ MChannelAccountActor,
+ MChannelActor,
+ MCommentOwnerVideo
+} from '../../../types/models'
import { markCommentAsDeleted } from '../../video-comment'
import { forwardVideoRelatedActivity } from '../send/utils'
} else if (byActorFull.type === 'Group') {
if (!byActorFull.VideoChannel) throw new Error('Actor ' + byActorFull.url + ' is a group but we cannot find it in database.')
- const channelToDelete = Object.assign({}, byActorFull.VideoChannel, { Actor: byActorFull })
+ const channelToDelete = byActorFull.VideoChannel as MChannelAccountActor & { Actor: MActorFull }
+ channelToDelete.Actor = byActorFull
return retryTransactionWrapper(processDeleteVideoChannel, channelToDelete)
}
}