aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/activitypub/videos.ts')
-rw-r--r--server/lib/activitypub/videos.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts
index 035994da8..970a953fc 100644
--- a/server/lib/activitypub/videos.ts
+++ b/server/lib/activitypub/videos.ts
@@ -58,7 +58,7 @@ import {
58 MChannelDefault, 58 MChannelDefault,
59 MChannelId, 59 MChannelId,
60 MVideo, 60 MVideo,
61 MVideoAccountAllFiles, 61 MVideoAccountLightBlacklistAllFiles,
62 MVideoAccountLight, 62 MVideoAccountLight,
63 MVideoAP, 63 MVideoAP,
64 MVideoAPWithoutCaption, 64 MVideoAPWithoutCaption,
@@ -213,19 +213,19 @@ function getOrCreateVideoAndAccountAndChannel (options: {
213 syncParam?: SyncParam, 213 syncParam?: SyncParam,
214 fetchType?: 'all', 214 fetchType?: 'all',
215 allowRefresh?: boolean 215 allowRefresh?: boolean
216}): Promise<{ video: MVideoAccountAllFiles, created: boolean, autoBlacklisted?: boolean }> 216}): Promise<{ video: MVideoAccountLightBlacklistAllFiles, created: boolean, autoBlacklisted?: boolean }>
217function getOrCreateVideoAndAccountAndChannel (options: { 217function getOrCreateVideoAndAccountAndChannel (options: {
218 videoObject: { id: string } | string, 218 videoObject: { id: string } | string,
219 syncParam?: SyncParam, 219 syncParam?: SyncParam,
220 fetchType?: VideoFetchByUrlType, 220 fetchType?: VideoFetchByUrlType,
221 allowRefresh?: boolean 221 allowRefresh?: boolean
222}): Promise<{ video: MVideoAccountAllFiles | MVideoThumbnail, created: boolean, autoBlacklisted?: boolean }> 222}): Promise<{ video: MVideoAccountLightBlacklistAllFiles | MVideoThumbnail, created: boolean, autoBlacklisted?: boolean }>
223async function getOrCreateVideoAndAccountAndChannel (options: { 223async function getOrCreateVideoAndAccountAndChannel (options: {
224 videoObject: { id: string } | string, 224 videoObject: { id: string } | string,
225 syncParam?: SyncParam, 225 syncParam?: SyncParam,
226 fetchType?: VideoFetchByUrlType, 226 fetchType?: VideoFetchByUrlType,
227 allowRefresh?: boolean // true by default 227 allowRefresh?: boolean // true by default
228}): Promise<{ video: MVideoAccountAllFiles | MVideoThumbnail, created: boolean, autoBlacklisted?: boolean }> { 228}): Promise<{ video: MVideoAccountLightBlacklistAllFiles | MVideoThumbnail, created: boolean, autoBlacklisted?: boolean }> {
229 // Default params 229 // Default params
230 const syncParam = options.syncParam || { likes: true, dislikes: true, shares: true, comments: true, thumbnail: true, refreshVideo: false } 230 const syncParam = options.syncParam || { likes: true, dislikes: true, shares: true, comments: true, thumbnail: true, refreshVideo: false }
231 const fetchType = options.fetchType || 'all' 231 const fetchType = options.fetchType || 'all'
@@ -263,7 +263,7 @@ async function getOrCreateVideoAndAccountAndChannel (options: {
263} 263}
264 264
265async function updateVideoFromAP (options: { 265async function updateVideoFromAP (options: {
266 video: MVideoAccountAllFiles, 266 video: MVideoAccountLightBlacklistAllFiles,
267 videoObject: VideoTorrentObject, 267 videoObject: VideoTorrentObject,
268 account: MAccountActor, 268 account: MAccountActor,
269 channel: MChannelDefault, 269 channel: MChannelDefault,
@@ -420,7 +420,7 @@ async function refreshVideoIfNeeded (options: {
420 420
421 // We need more attributes if the argument video was fetched with not enough joints 421 // We need more attributes if the argument video was fetched with not enough joints
422 const video = options.fetchedType === 'all' 422 const video = options.fetchedType === 'all'
423 ? options.video as MVideoAccountAllFiles 423 ? options.video as MVideoAccountLightBlacklistAllFiles
424 : await VideoModel.loadByUrlAndPopulateAccount(options.video.url) 424 : await VideoModel.loadByUrlAndPopulateAccount(options.video.url)
425 425
426 try { 426 try {