diff options
Diffstat (limited to 'server/lib/video.ts')
-rw-r--r-- | server/lib/video.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/video.ts b/server/lib/video.ts index d26cf85cd..daf998704 100644 --- a/server/lib/video.ts +++ b/server/lib/video.ts | |||
@@ -10,7 +10,7 @@ import { ThumbnailType, VideoCreate, VideoPrivacy, VideoTranscodingPayload } fro | |||
10 | import { federateVideoIfNeeded } from './activitypub/videos' | 10 | import { federateVideoIfNeeded } from './activitypub/videos' |
11 | import { JobQueue } from './job-queue/job-queue' | 11 | import { JobQueue } from './job-queue/job-queue' |
12 | import { Notifier } from './notifier' | 12 | import { Notifier } from './notifier' |
13 | import { createVideoMiniatureFromExisting } from './thumbnail' | 13 | import { updateVideoMiniatureFromExisting } from './thumbnail' |
14 | 14 | ||
15 | function buildLocalVideoFromReq (videoInfo: VideoCreate, channelId: number): FilteredModelAttributes<VideoModel> { | 15 | function buildLocalVideoFromReq (videoInfo: VideoCreate, channelId: number): FilteredModelAttributes<VideoModel> { |
16 | return { | 16 | return { |
@@ -54,7 +54,7 @@ async function buildVideoThumbnailsFromReq (options: { | |||
54 | const fields = files?.[p.fieldName] | 54 | const fields = files?.[p.fieldName] |
55 | 55 | ||
56 | if (fields) { | 56 | if (fields) { |
57 | return createVideoMiniatureFromExisting({ | 57 | return updateVideoMiniatureFromExisting({ |
58 | inputPath: fields[0].path, | 58 | inputPath: fields[0].path, |
59 | video, | 59 | video, |
60 | type: p.type, | 60 | type: p.type, |