aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-16 11:08:25 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:52 +0100
commitefc32059d980c51793e8e9ac0fb6a885a8026f94 (patch)
treec272e63fd57a9625b53dc26ceb1b46aee35d21d3 /server/initializers
parentd846501818c2d29e66e6fd141789cb04fd55a437 (diff)
downloadPeerTube-efc32059d980c51793e8e9ac0fb6a885a8026f94.tar.gz
PeerTube-efc32059d980c51793e8e9ac0fb6a885a8026f94.tar.zst
PeerTube-efc32059d980c51793e8e9ac0fb6a885a8026f94.zip
Send server announce when users upload a video
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts6
-rw-r--r--server/initializers/installer.ts2
2 files changed, 4 insertions, 4 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 99da95ab9..dca223370 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -209,9 +209,9 @@ const VIDEO_PRIVACIES = {
209} 209}
210 210
211const VIDEO_MIMETYPE_EXT = { 211const VIDEO_MIMETYPE_EXT = {
212 'video/webm': 'webm', 212 'video/webm': '.webm',
213 'video/ogg': 'ogv', 213 'video/ogg': '.ogv',
214 'video/mp4': 'mp4' 214 'video/mp4': '.mp4'
215} 215}
216 216
217// --------------------------------------------------------------------------- 217// ---------------------------------------------------------------------------
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts
index c3521a9e4..3f4c4dfbb 100644
--- a/server/initializers/installer.ts
+++ b/server/initializers/installer.ts
@@ -13,9 +13,9 @@ async function installApplication () {
13 await db.sequelize.sync() 13 await db.sequelize.sync()
14 await removeCacheDirectories() 14 await removeCacheDirectories()
15 await createDirectoriesIfNotExist() 15 await createDirectoriesIfNotExist()
16 await createApplicationIfNotExist()
16 await createOAuthClientIfNotExist() 17 await createOAuthClientIfNotExist()
17 await createOAuthAdminIfNotExist() 18 await createOAuthAdminIfNotExist()
18 await createApplicationIfNotExist()
19 } catch (err) { 19 } catch (err) {
20 logger.error('Cannot install application.', err) 20 logger.error('Cannot install application.', err)
21 throw err 21 throw err