mirror of https://github.com/Chocobozzz/PeerTube
Fix server build
parent
a74fe0b69a
commit
53fdb2e83e
|
@ -1,5 +1,6 @@
|
||||||
import { MVideo, MVideoPlaylist } from '../../../types/models/index.js'
|
import { MVideo } from '@server/types/models/video/video.js'
|
||||||
import { TagsHtml } from './tags-html.js'
|
import { TagsHtml } from './tags-html.js'
|
||||||
|
import { MVideoPlaylist } from '@server/types/models/video/video-playlist.js'
|
||||||
|
|
||||||
export class CommonEmbedHtml {
|
export class CommonEmbedHtml {
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,10 @@ import validator from 'validator'
|
||||||
import { CONFIG } from '../../../initializers/config.js'
|
import { CONFIG } from '../../../initializers/config.js'
|
||||||
import { MEMOIZE_TTL, WEBSERVER } from '../../../initializers/constants.js'
|
import { MEMOIZE_TTL, WEBSERVER } from '../../../initializers/constants.js'
|
||||||
import { VideoModel } from '../../../models/video/video.js'
|
import { VideoModel } from '../../../models/video/video.js'
|
||||||
import { MVideo } from '../../../types/models/index.js'
|
import { MVideo, MVideoThumbnailBlacklist } from '../../../types/models/index.js'
|
||||||
import { getActivityStreamDuration } from '../../activitypub/activity.js'
|
import { getActivityStreamDuration } from '../../activitypub/activity.js'
|
||||||
import { isVideoInPrivateDirectory } from '../../video-privacy.js'
|
import { isVideoInPrivateDirectory } from '../../video-privacy.js'
|
||||||
import { Memoize } from '@server/helpers/memoize.js'
|
import { Memoize } from '@server/helpers/memoize.js'
|
||||||
import { MVideoThumbnailBlacklist } from 'server/dist/core/types/models/index.js'
|
|
||||||
import { TagsHtml } from './tags-html.js'
|
import { TagsHtml } from './tags-html.js'
|
||||||
import { PageHtml } from './page-html.js'
|
import { PageHtml } from './page-html.js'
|
||||||
import { CommonEmbedHtml } from './common-embed-html.js'
|
import { CommonEmbedHtml } from './common-embed-html.js'
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { DIRECTORIES } from '@server/initializers/constants.js'
|
||||||
import { MVideo, MVideoFile, MVideoFullLight } from '@server/types/models/index.js'
|
import { MVideo, MVideoFile, MVideoFullLight } from '@server/types/models/index.js'
|
||||||
import { updateHLSFilesACL, updateWebVideoFileACL } from './object-storage/index.js'
|
import { updateHLSFilesACL, updateWebVideoFileACL } from './object-storage/index.js'
|
||||||
|
|
||||||
const validPrivacySet = new Set([
|
const validPrivacySet = new Set<VideoPrivacyType>([
|
||||||
VideoPrivacy.PRIVATE,
|
VideoPrivacy.PRIVATE,
|
||||||
VideoPrivacy.INTERNAL,
|
VideoPrivacy.INTERNAL,
|
||||||
VideoPrivacy.PASSWORD_PROTECTED
|
VideoPrivacy.PASSWORD_PROTECTED
|
||||||
|
@ -20,7 +20,7 @@ function setVideoPrivacy (video: MVideo, newPrivacy: VideoPrivacyType) {
|
||||||
video.privacy = newPrivacy
|
video.privacy = newPrivacy
|
||||||
}
|
}
|
||||||
|
|
||||||
function isVideoInPrivateDirectory (privacy) {
|
function isVideoInPrivateDirectory (privacy: VideoPrivacyType) {
|
||||||
return validPrivacySet.has(privacy)
|
return validPrivacySet.has(privacy)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue