diff options
Diffstat (limited to 'server/models/video/video-playlist.ts')
-rw-r--r-- | server/models/video/video-playlist.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/models/video/video-playlist.ts b/server/models/video/video-playlist.ts index 08e4d32c8..93f36a9d0 100644 --- a/server/models/video/video-playlist.ts +++ b/server/models/video/video-playlist.ts | |||
@@ -26,12 +26,12 @@ import { | |||
26 | import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' | 26 | import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' |
27 | import { | 27 | import { |
28 | ACTIVITY_PUB, | 28 | ACTIVITY_PUB, |
29 | CONFIG, | ||
30 | CONSTRAINTS_FIELDS, | 29 | CONSTRAINTS_FIELDS, |
31 | STATIC_PATHS, | 30 | STATIC_PATHS, |
32 | THUMBNAILS_SIZE, | 31 | THUMBNAILS_SIZE, |
33 | VIDEO_PLAYLIST_PRIVACIES, | 32 | VIDEO_PLAYLIST_PRIVACIES, |
34 | VIDEO_PLAYLIST_TYPES | 33 | VIDEO_PLAYLIST_TYPES, |
34 | WEBSERVER | ||
35 | } from '../../initializers' | 35 | } from '../../initializers' |
36 | import { VideoPlaylist } from '../../../shared/models/videos/playlist/video-playlist.model' | 36 | import { VideoPlaylist } from '../../../shared/models/videos/playlist/video-playlist.model' |
37 | import { AccountModel, ScopeNames as AccountScopeNames } from '../account/account' | 37 | import { AccountModel, ScopeNames as AccountScopeNames } from '../account/account' |
@@ -43,6 +43,7 @@ import { activityPubCollectionPagination } from '../../helpers/activitypub' | |||
43 | import { remove } from 'fs-extra' | 43 | import { remove } from 'fs-extra' |
44 | import { logger } from '../../helpers/logger' | 44 | import { logger } from '../../helpers/logger' |
45 | import { VideoPlaylistType } from '../../../shared/models/videos/playlist/video-playlist-type.model' | 45 | import { VideoPlaylistType } from '../../../shared/models/videos/playlist/video-playlist-type.model' |
46 | import { CONFIG } from '../../initializers/config' | ||
46 | 47 | ||
47 | enum ScopeNames { | 48 | enum ScopeNames { |
48 | AVAILABLE_FOR_LIST = 'AVAILABLE_FOR_LIST', | 49 | AVAILABLE_FOR_LIST = 'AVAILABLE_FOR_LIST', |
@@ -417,7 +418,7 @@ export class VideoPlaylistModel extends Model<VideoPlaylistModel> { | |||
417 | } | 418 | } |
418 | 419 | ||
419 | getThumbnailUrl () { | 420 | getThumbnailUrl () { |
420 | return CONFIG.WEBSERVER.URL + STATIC_PATHS.THUMBNAILS + this.getThumbnailName() | 421 | return WEBSERVER.URL + STATIC_PATHS.THUMBNAILS + this.getThumbnailName() |
421 | } | 422 | } |
422 | 423 | ||
423 | getThumbnailStaticPath () { | 424 | getThumbnailStaticPath () { |