diff options
Diffstat (limited to 'server/lib/activitypub/videos.ts')
-rw-r--r-- | server/lib/activitypub/videos.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index 2102702e1..3a8451a32 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts | |||
@@ -27,7 +27,6 @@ import { | |||
27 | import { ActorModel } from '../../models/activitypub/actor' | 27 | import { ActorModel } from '../../models/activitypub/actor' |
28 | import { TagModel } from '../../models/video/tag' | 28 | import { TagModel } from '../../models/video/tag' |
29 | import { VideoModel } from '../../models/video/video' | 29 | import { VideoModel } from '../../models/video/video' |
30 | import { VideoChannelModel } from '../../models/video/video-channel' | ||
31 | import { VideoFileModel } from '../../models/video/video-file' | 30 | import { VideoFileModel } from '../../models/video/video-file' |
32 | import { getOrCreateActorAndServerAndModel } from './actor' | 31 | import { getOrCreateActorAndServerAndModel } from './actor' |
33 | import { addVideoComments } from './video-comments' | 32 | import { addVideoComments } from './video-comments' |
@@ -54,9 +53,9 @@ import { ThumbnailModel } from '../../models/video/thumbnail' | |||
54 | import { ThumbnailType } from '../../../shared/models/videos/thumbnail.type' | 53 | import { ThumbnailType } from '../../../shared/models/videos/thumbnail.type' |
55 | import { join } from 'path' | 54 | import { join } from 'path' |
56 | import { FilteredModelAttributes } from '../../typings/sequelize' | 55 | import { FilteredModelAttributes } from '../../typings/sequelize' |
57 | import { Hooks } from '../plugins/hooks' | ||
58 | import { autoBlacklistVideoIfNeeded } from '../video-blacklist' | 56 | import { autoBlacklistVideoIfNeeded } from '../video-blacklist' |
59 | import { ActorFollowScoreCache } from '../files-cache' | 57 | import { ActorFollowScoreCache } from '../files-cache' |
58 | import { AccountModelIdActor, VideoChannelModelId, VideoChannelModelIdActor } from '../../typings/models' | ||
60 | 59 | ||
61 | async function federateVideoIfNeeded (video: VideoModel, isNewVideo: boolean, transaction?: sequelize.Transaction) { | 60 | async function federateVideoIfNeeded (video: VideoModel, isNewVideo: boolean, transaction?: sequelize.Transaction) { |
62 | if ( | 61 | if ( |
@@ -239,8 +238,8 @@ async function getOrCreateVideoAndAccountAndChannel (options: { | |||
239 | async function updateVideoFromAP (options: { | 238 | async function updateVideoFromAP (options: { |
240 | video: VideoModel, | 239 | video: VideoModel, |
241 | videoObject: VideoTorrentObject, | 240 | videoObject: VideoTorrentObject, |
242 | account: AccountModel, | 241 | account: AccountModelIdActor, |
243 | channel: VideoChannelModel, | 242 | channel: VideoChannelModelIdActor, |
244 | overrideTo?: string[] | 243 | overrideTo?: string[] |
245 | }) { | 244 | }) { |
246 | const { video, videoObject, account, channel, overrideTo } = options | 245 | const { video, videoObject, account, channel, overrideTo } = options |
@@ -550,7 +549,7 @@ async function createVideo (videoObject: VideoTorrentObject, channelActor: Actor | |||
550 | } | 549 | } |
551 | 550 | ||
552 | async function videoActivityObjectToDBAttributes ( | 551 | async function videoActivityObjectToDBAttributes ( |
553 | videoChannel: VideoChannelModel, | 552 | videoChannel: VideoChannelModelId, |
554 | videoObject: VideoTorrentObject, | 553 | videoObject: VideoTorrentObject, |
555 | to: string[] = [] | 554 | to: string[] = [] |
556 | ) { | 555 | ) { |