From 1b5b10d13152d704d2396a1e53d56aba1a8e7e03 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 30 Nov 2017 13:15:25 +0100 Subject: Fix activitypub check headers --- server/initializers/constants.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'server/initializers') diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 8f278fb0b..4f63cbb02 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -220,11 +220,11 @@ const VIDEO_MIMETYPE_EXT = { const SERVER_ACCOUNT_NAME = 'peertube' const ACTIVITY_PUB = { - ACCEPT_HEADERS: [ - 'application/activity+json, application/ld+json', - 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' + POTENTIAL_ACCEPT_HEADERS: [ + 'application/activity+json', + 'application/ld+json' ], - ACCEPT_HEADER: '', + ACCEPT_HEADER: 'application/activity+json, application/ld+json', PUBLIC: 'https://www.w3.org/ns/activitystreams#Public', COLLECTION_ITEMS_PER_PAGE: 10, FETCH_PAGE_LIMIT: 100, @@ -235,7 +235,6 @@ const ACTIVITY_PUB = { MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ] } } -ACTIVITY_PUB.ACCEPT_HEADER = ACTIVITY_PUB.ACCEPT_HEADERS[0] // --------------------------------------------------------------------------- -- cgit v1.2.3