From efc32059d980c51793e8e9ac0fb6a885a8026f94 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Nov 2017 11:08:25 +0100 Subject: Send server announce when users upload a video --- server/initializers/constants.ts | 6 +++--- server/initializers/installer.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'server/initializers') 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 = { } const VIDEO_MIMETYPE_EXT = { - 'video/webm': 'webm', - 'video/ogg': 'ogv', - 'video/mp4': 'mp4' + 'video/webm': '.webm', + 'video/ogg': '.ogv', + 'video/mp4': '.mp4' } // --------------------------------------------------------------------------- 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 () { await db.sequelize.sync() await removeCacheDirectories() await createDirectoriesIfNotExist() + await createApplicationIfNotExist() await createOAuthClientIfNotExist() await createOAuthAdminIfNotExist() - await createApplicationIfNotExist() } catch (err) { logger.error('Cannot install application.', err) throw err -- cgit v1.2.3