MVideoRedundancyFileVideo,
MVideoRedundancyStreamingPlaylistVideo
} from '../../../typings/models'
+import { ContextType } from '@server/helpers/activitypub'
async function sendCreateVideo (video: MVideoAP, t: Transaction) {
if (!video.hasPrivacyForFederation()) return undefined
byActor,
video,
url: fileRedundancy.url,
- object: fileRedundancy.toActivityPubObject()
+ object: fileRedundancy.toActivityPubObject(),
+ contextType: 'CacheFile'
})
}
url: string
object: any
transaction?: Transaction
+ contextType?: ContextType
}) {
const activityBuilder = (audience: ActivityAudience) => {
return buildCreateActivity(options.url, options.byActor, options.object, audience)