X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo.ts;h=0c5ed64ec0e4c67c0cdc494a4a9f52a8bdaebf83;hb=05a60d85997c108d39bcfb14f1ffd4c74f8b1e93;hp=7fe2ec2938795cae5c6d0cbebe5f10e2f2384dce;hpb=3b504f6ed4e890bebb46d0481aba15b43050323a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 7fe2ec293..0c5ed64ec 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -706,6 +706,7 @@ export class VideoModel extends Model>> { name: 'videoId', allowNull: false }, + hooks: true, onDelete: 'cascade' }) VideoLive: VideoLiveModel @@ -1717,7 +1718,7 @@ export class VideoModel extends Model>> { toActivityPubObject (this: MVideoAP): Promise { return Hooks.wrapObject( videoModelToActivityPubObject(this), - 'filter:activity-pub.video.jsonld.build.result', + 'filter:activity-pub.video.json-ld.build.result', { video: this } ) }