diff options
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 10ae5097c..ca71da375 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -45,6 +45,7 @@ import { addMethodsToModel, getSort } from '../utils' | |||
45 | import { TagInstance } from './tag-interface' | 45 | import { TagInstance } from './tag-interface' |
46 | import { VideoFileInstance, VideoFileModel } from './video-file-interface' | 46 | import { VideoFileInstance, VideoFileModel } from './video-file-interface' |
47 | import { VideoAttributes, VideoInstance, VideoMethods } from './video-interface' | 47 | import { VideoAttributes, VideoInstance, VideoMethods } from './video-interface' |
48 | import { sendDeleteVideo } from '../../lib/activitypub/send-request' | ||
48 | 49 | ||
49 | const Buffer = safeBuffer.Buffer | 50 | const Buffer = safeBuffer.Buffer |
50 | 51 | ||
@@ -363,13 +364,9 @@ function afterDestroy (video: VideoInstance) { | |||
363 | ) | 364 | ) |
364 | 365 | ||
365 | if (video.isOwned()) { | 366 | if (video.isOwned()) { |
366 | const removeVideoToFriendsParams = { | ||
367 | uuid: video.uuid | ||
368 | } | ||
369 | |||
370 | tasks.push( | 367 | tasks.push( |
371 | video.removePreview() | 368 | video.removePreview(), |
372 | // FIXME: remove video for followers | 369 | sendDeleteVideo(video, undefined) |
373 | ) | 370 | ) |
374 | 371 | ||
375 | // Remove physical files and torrents | 372 | // Remove physical files and torrents |