aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/video.ts')
-rw-r--r--server/lib/video.ts4
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
10import { federateVideoIfNeeded } from './activitypub/videos' 10import { federateVideoIfNeeded } from './activitypub/videos'
11import { JobQueue } from './job-queue/job-queue' 11import { JobQueue } from './job-queue/job-queue'
12import { Notifier } from './notifier' 12import { Notifier } from './notifier'
13import { createVideoMiniatureFromExisting } from './thumbnail' 13import { updateVideoMiniatureFromExisting } from './thumbnail'
14 14
15function buildLocalVideoFromReq (videoInfo: VideoCreate, channelId: number): FilteredModelAttributes<VideoModel> { 15function 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,