1
0
Fork 0

Fix server build

This commit is contained in:
Chocobozzz 2023-10-20 16:05:38 +02:00
parent a74fe0b69a
commit 53fdb2e83e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 5 additions and 5 deletions

View File

@ -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 { MVideoPlaylist } from '@server/types/models/video/video-playlist.js'
export class CommonEmbedHtml {

View File

@ -6,11 +6,10 @@ import validator from 'validator'
import { CONFIG } from '../../../initializers/config.js'
import { MEMOIZE_TTL, WEBSERVER } from '../../../initializers/constants.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 { isVideoInPrivateDirectory } from '../../video-privacy.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 { PageHtml } from './page-html.js'
import { CommonEmbedHtml } from './common-embed-html.js'

View File

@ -6,7 +6,7 @@ import { DIRECTORIES } from '@server/initializers/constants.js'
import { MVideo, MVideoFile, MVideoFullLight } from '@server/types/models/index.js'
import { updateHLSFilesACL, updateWebVideoFileACL } from './object-storage/index.js'
const validPrivacySet = new Set([
const validPrivacySet = new Set<VideoPrivacyType>([
VideoPrivacy.PRIVATE,
VideoPrivacy.INTERNAL,
VideoPrivacy.PASSWORD_PROTECTED
@ -20,7 +20,7 @@ function setVideoPrivacy (video: MVideo, newPrivacy: VideoPrivacyType) {
video.privacy = newPrivacy
}
function isVideoInPrivateDirectory (privacy) {
function isVideoInPrivateDirectory (privacy: VideoPrivacyType) {
return validPrivacySet.has(privacy)
}