diff options
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r-- | server/lib/activitypub/videos.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index 339f8e797..caff0621e 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts | |||
@@ -17,7 +17,15 @@ import { isVideoFileInfoHashValid } from '../../helpers/custom-validators/videos | |||
17 | import { resetSequelizeInstance, retryTransactionWrapper } from '../../helpers/database-utils' | 17 | import { resetSequelizeInstance, retryTransactionWrapper } from '../../helpers/database-utils' |
18 | import { logger } from '../../helpers/logger' | 18 | import { logger } from '../../helpers/logger' |
19 | import { doRequest, downloadImage } from '../../helpers/requests' | 19 | import { doRequest, downloadImage } from '../../helpers/requests' |
20 | import { ACTIVITY_PUB, CONFIG, MIMETYPES, REMOTE_SCHEME, sequelizeTypescript, THUMBNAILS_SIZE } from '../../initializers' | 20 | import { |
21 | ACTIVITY_PUB, | ||
22 | CONFIG, | ||
23 | MIMETYPES, | ||
24 | P2P_MEDIA_LOADER_PEER_VERSION, | ||
25 | REMOTE_SCHEME, | ||
26 | sequelizeTypescript, | ||
27 | THUMBNAILS_SIZE | ||
28 | } from '../../initializers' | ||
21 | import { ActorModel } from '../../models/activitypub/actor' | 29 | import { ActorModel } from '../../models/activitypub/actor' |
22 | import { TagModel } from '../../models/video/tag' | 30 | import { TagModel } from '../../models/video/tag' |
23 | import { VideoModel } from '../../models/video/video' | 31 | import { VideoModel } from '../../models/video/video' |
@@ -599,6 +607,7 @@ function streamingPlaylistActivityUrlToDBAttributes (video: VideoModel, videoObj | |||
599 | playlistUrl: playlistUrlObject.href, | 607 | playlistUrl: playlistUrlObject.href, |
600 | segmentsSha256Url: segmentsSha256UrlObject.href, | 608 | segmentsSha256Url: segmentsSha256UrlObject.href, |
601 | p2pMediaLoaderInfohashes: VideoStreamingPlaylistModel.buildP2PMediaLoaderInfoHashes(playlistUrlObject.href, videoFiles), | 609 | p2pMediaLoaderInfohashes: VideoStreamingPlaylistModel.buildP2PMediaLoaderInfoHashes(playlistUrlObject.href, videoFiles), |
610 | p2pMediaLoaderPeerVersion: P2P_MEDIA_LOADER_PEER_VERSION, | ||
602 | videoId: video.id | 611 | videoId: video.id |
603 | } | 612 | } |
604 | 613 | ||