aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-17 15:20:42 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:52 +0100
commit9a27cdc27c900feaae5f6db4315c4ccdfc0c4493 (patch)
treef91fcfa0fa1a2e45aae1c5333ef2f7ec60e56ef0 /server/initializers
parent975e6e0e44e2f2b25f804cd48a62e2a8d9e8117a (diff)
downloadPeerTube-9a27cdc27c900feaae5f6db4315c4ccdfc0c4493.tar.gz
PeerTube-9a27cdc27c900feaae5f6db4315c4ccdfc0c4493.tar.zst
PeerTube-9a27cdc27c900feaae5f6db4315c4ccdfc0c4493.zip
Optimize signature verification
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 48d7b5b98..9c7c31a61 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -223,9 +223,10 @@ const FRIEND_SCORE = {
223} 223}
224 224
225const SERVER_ACCOUNT_NAME = 'peertube' 225const SERVER_ACCOUNT_NAME = 'peertube'
226const ACTIVITY_PUB_ACCEPT_HEADER = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'
227 226
228const ACTIVITY_PUB = { 227const ACTIVITY_PUB = {
228 ACCEPT_HEADER: 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
229 PUBLIC: 'https://www.w3.org/ns/activitystreams#Public',
229 COLLECTION_ITEMS_PER_PAGE: 10, 230 COLLECTION_ITEMS_PER_PAGE: 10,
230 URL_MIME_TYPES: { 231 URL_MIME_TYPES: {
231 VIDEO: [ 'video/mp4', 'video/webm', 'video/ogg' ], // TODO: Merge with VIDEO_MIMETYPE_EXT 232 VIDEO: [ 'video/mp4', 'video/webm', 'video/ogg' ], // TODO: Merge with VIDEO_MIMETYPE_EXT
@@ -349,7 +350,6 @@ export {
349 SERVERS_SCORE, 350 SERVERS_SCORE,
350 PREVIEWS_SIZE, 351 PREVIEWS_SIZE,
351 REMOTE_SCHEME, 352 REMOTE_SCHEME,
352 ACTIVITY_PUB_ACCEPT_HEADER,
353 FOLLOW_STATES, 353 FOLLOW_STATES,
354 SEARCHABLE_COLUMNS, 354 SEARCHABLE_COLUMNS,
355 SERVER_ACCOUNT_NAME, 355 SERVER_ACCOUNT_NAME,