aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r--server/lib/activitypub/videos.ts7
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 @@
1import { VideoLiveModel } from '@server/models/video/video-live'
2import * as Bluebird from 'bluebird' 1import * as Bluebird from 'bluebird'
3import { maxBy, minBy } from 'lodash' 2import { maxBy, minBy } from 'lodash'
4import * as magnetUtil from 'magnet-uri' 3import * as magnetUtil from 'magnet-uri'
5import { join } from 'path' 4import { join } from 'path'
6import * as request from 'request' 5import * as request from 'request'
7import * as sequelize from 'sequelize' 6import * as sequelize from 'sequelize'
7import { VideoLiveModel } from '@server/models/video/video-live'
8import { 8import {
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'
19import { VideoObject } from '../../../shared/models/activitypub/objects' 18import { VideoObject } from '../../../shared/models/activitypub/objects'
20import { VideoPrivacy } from '../../../shared/models/videos' 19import { 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
567async function createVideo (videoObject: VideoObject, channel: MChannelAccountLight, waitThumbnail = false) { 564async 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