aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/videos/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-04 09:19:01 +0200
committerChocobozzz <me@florianbigard.com>2021-06-04 15:45:44 +0200
commit91f8f8db97ffb83701c30f9cdb1e804670434eb0 (patch)
tree4b6659c8572d95b78454c6c4806ddc77a9c420e1 /server/lib/activitypub/videos/shared
parent1333ab1f2d4ec495084c5368df25610683582ae3 (diff)
downloadPeerTube-91f8f8db97ffb83701c30f9cdb1e804670434eb0.tar.gz
PeerTube-91f8f8db97ffb83701c30f9cdb1e804670434eb0.tar.zst
PeerTube-91f8f8db97ffb83701c30f9cdb1e804670434eb0.zip
createThumbnail -> updateThumbnail
Diffstat (limited to 'server/lib/activitypub/videos/shared')
-rw-r--r--server/lib/activitypub/videos/shared/abstract-builder.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/activitypub/videos/shared/abstract-builder.ts b/server/lib/activitypub/videos/shared/abstract-builder.ts
index 4bd38b40c..0b58ddb33 100644
--- a/server/lib/activitypub/videos/shared/abstract-builder.ts
+++ b/server/lib/activitypub/videos/shared/abstract-builder.ts
@@ -2,7 +2,7 @@ import { Transaction } from 'sequelize/types'
2import { checkUrlsSameHost } from '@server/helpers/activitypub' 2import { checkUrlsSameHost } from '@server/helpers/activitypub'
3import { deleteNonExistingModels } from '@server/helpers/database-utils' 3import { deleteNonExistingModels } from '@server/helpers/database-utils'
4import { logger, LoggerTagsFn } from '@server/helpers/logger' 4import { logger, LoggerTagsFn } from '@server/helpers/logger'
5import { createPlaceholderThumbnail, createVideoMiniatureFromUrl } from '@server/lib/thumbnail' 5import { updatePlaceholderThumbnail, updateVideoMiniatureFromUrl } from '@server/lib/thumbnail'
6import { setVideoTags } from '@server/lib/video' 6import { setVideoTags } from '@server/lib/video'
7import { VideoCaptionModel } from '@server/models/video/video-caption' 7import { VideoCaptionModel } from '@server/models/video/video-caption'
8import { VideoFileModel } from '@server/models/video/video-file' 8import { VideoFileModel } from '@server/models/video/video-file'
@@ -38,7 +38,7 @@ export abstract class APVideoAbstractBuilder {
38 } 38 }
39 39
40 protected tryToGenerateThumbnail (video: MVideoThumbnail): Promise<MThumbnail> { 40 protected tryToGenerateThumbnail (video: MVideoThumbnail): Promise<MThumbnail> {
41 return createVideoMiniatureFromUrl({ 41 return updateVideoMiniatureFromUrl({
42 downloadUrl: getThumbnailFromIcons(this.videoObject).url, 42 downloadUrl: getThumbnailFromIcons(this.videoObject).url,
43 video, 43 video,
44 type: ThumbnailType.MINIATURE 44 type: ThumbnailType.MINIATURE
@@ -54,7 +54,7 @@ export abstract class APVideoAbstractBuilder {
54 const previewIcon = getPreviewFromIcons(this.videoObject) 54 const previewIcon = getPreviewFromIcons(this.videoObject)
55 if (!previewIcon) return 55 if (!previewIcon) return
56 56
57 const previewModel = createPlaceholderThumbnail({ 57 const previewModel = updatePlaceholderThumbnail({
58 fileUrl: previewIcon.url, 58 fileUrl: previewIcon.url,
59 video, 59 video,
60 type: ThumbnailType.PREVIEW, 60 type: ThumbnailType.PREVIEW,