From 053aed43fb255b4ae4324a845534f2f562c3b6cc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 6 Nov 2020 10:57:40 +0100 Subject: Regenerate miniature on live save --- server/lib/activitypub/videos.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'server/lib/activitypub/videos.ts') diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index ab4aac0a1..4053f487c 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts @@ -1,10 +1,10 @@ -import { VideoLiveModel } from '@server/models/video/video-live' import * as Bluebird from 'bluebird' import { maxBy, minBy } from 'lodash' import * as magnetUtil from 'magnet-uri' import { join } from 'path' import * as request from 'request' import * as sequelize from 'sequelize' +import { VideoLiveModel } from '@server/models/video/video-live' import { ActivityHashTagObject, ActivityMagnetUrlObject, @@ -13,8 +13,7 @@ import { ActivitypubHttpFetcherPayload, ActivityTagObject, ActivityUrlObject, - ActivityVideoUrlObject, - VideoState + ActivityVideoUrlObject } from '../../../shared/index' import { VideoObject } from '../../../shared/models/activitypub/objects' import { VideoPrivacy } from '../../../shared/models/videos' @@ -562,8 +561,6 @@ function isAPHashTagObject (url: any): url is ActivityHashTagObject { return url && url.type === 'Hashtag' } - - async function createVideo (videoObject: VideoObject, channel: MChannelAccountLight, waitThumbnail = false) { logger.debug('Adding remote video %s.', videoObject.id) -- cgit v1.2.3