diff options
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r-- | server/lib/activitypub/videos.ts | 7 |
1 files changed, 2 insertions, 5 deletions
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 @@ | |||
1 | import { VideoLiveModel } from '@server/models/video/video-live' | ||
2 | import * as Bluebird from 'bluebird' | 1 | import * as Bluebird from 'bluebird' |
3 | import { maxBy, minBy } from 'lodash' | 2 | import { maxBy, minBy } from 'lodash' |
4 | import * as magnetUtil from 'magnet-uri' | 3 | import * as magnetUtil from 'magnet-uri' |
5 | import { join } from 'path' | 4 | import { join } from 'path' |
6 | import * as request from 'request' | 5 | import * as request from 'request' |
7 | import * as sequelize from 'sequelize' | 6 | import * as sequelize from 'sequelize' |
7 | import { VideoLiveModel } from '@server/models/video/video-live' | ||
8 | import { | 8 | import { |
9 | ActivityHashTagObject, | 9 | ActivityHashTagObject, |
10 | ActivityMagnetUrlObject, | 10 | ActivityMagnetUrlObject, |
@@ -13,8 +13,7 @@ import { | |||
13 | ActivitypubHttpFetcherPayload, | 13 | ActivitypubHttpFetcherPayload, |
14 | ActivityTagObject, | 14 | ActivityTagObject, |
15 | ActivityUrlObject, | 15 | ActivityUrlObject, |
16 | ActivityVideoUrlObject, | 16 | ActivityVideoUrlObject |
17 | VideoState | ||
18 | } from '../../../shared/index' | 17 | } from '../../../shared/index' |
19 | import { VideoObject } from '../../../shared/models/activitypub/objects' | 18 | import { VideoObject } from '../../../shared/models/activitypub/objects' |
20 | import { VideoPrivacy } from '../../../shared/models/videos' | 19 | import { VideoPrivacy } from '../../../shared/models/videos' |
@@ -562,8 +561,6 @@ function isAPHashTagObject (url: any): url is ActivityHashTagObject { | |||
562 | return url && url.type === 'Hashtag' | 561 | return url && url.type === 'Hashtag' |
563 | } | 562 | } |
564 | 563 | ||
565 | |||
566 | |||
567 | async function createVideo (videoObject: VideoObject, channel: MChannelAccountLight, waitThumbnail = false) { | 564 | async function createVideo (videoObject: VideoObject, channel: MChannelAccountLight, waitThumbnail = false) { |
568 | logger.debug('Adding remote video %s.', videoObject.id) | 565 | logger.debug('Adding remote video %s.', videoObject.id) |
569 | 566 | ||