diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-11 15:38:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-11 15:38:53 +0200 |
commit | 8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98 (patch) | |
tree | e04f1da52f9377cf6ce820425c0de6e57ab57fc6 /shared/utils/videos/videos.ts | |
parent | 76062d9f96e06a23a2efc8a727ea9c5394d21466 (diff) | |
download | PeerTube-8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98.tar.gz PeerTube-8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98.tar.zst PeerTube-8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98.zip |
Add ability to limit videos history size
Diffstat (limited to 'shared/utils/videos/videos.ts')
-rw-r--r-- | shared/utils/videos/videos.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/utils/videos/videos.ts b/shared/utils/videos/videos.ts index 54c6bccec..b5a07b792 100644 --- a/shared/utils/videos/videos.ts +++ b/shared/utils/videos/videos.ts | |||
@@ -18,9 +18,11 @@ import { | |||
18 | } from '../' | 18 | } from '../' |
19 | import * as validator from 'validator' | 19 | import * as validator from 'validator' |
20 | import { VideoDetails, VideoPrivacy } from '../../models/videos' | 20 | import { VideoDetails, VideoPrivacy } from '../../models/videos' |
21 | import { VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES, VIDEO_PRIVACIES } from '../../../server/initializers/constants' | 21 | import { VIDEO_CATEGORIES, VIDEO_LANGUAGES, loadLanguages, VIDEO_LICENCES, VIDEO_PRIVACIES } from '../../../server/initializers/constants' |
22 | import { dateIsValid, webtorrentAdd } from '../miscs/miscs' | 22 | import { dateIsValid, webtorrentAdd } from '../miscs/miscs' |
23 | 23 | ||
24 | loadLanguages() | ||
25 | |||
24 | type VideoAttributes = { | 26 | type VideoAttributes = { |
25 | name?: string | 27 | name?: string |
26 | category?: number | 28 | category?: number |