From 20494f122186bb1bfd82f4c598c4744acea27b0c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Nov 2017 15:22:39 +0100 Subject: Server shares user videos --- server/initializers/constants.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'server/initializers') diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index dca223370..eeda8347d 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -227,13 +227,11 @@ const ACTIVITY_PUB_ACCEPT_HEADER = 'application/ld+json; profile="https://www.w3 const ACTIVITY_PUB = { COLLECTION_ITEMS_PER_PAGE: 10, - VIDEO_URL_MIME_TYPES: [ - 'video/mp4', - 'video/webm', - 'video/ogg', - 'application/x-bittorrent', - 'application/x-bittorrent;x-scheme-handler/magnet' - ] + URL_MIME_TYPES: { + VIDEO: [ 'video/mp4', 'video/webm', 'video/ogg' ], // TODO: Merge with VIDEO_MIMETYPE_EXT + TORRENT: [ 'application/x-bittorrent' ], + MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ] + } } // --------------------------------------------------------------------------- -- cgit v1.2.3