aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts9
1 files changed, 4 insertions, 5 deletions
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 = {
220const SERVER_ACCOUNT_NAME = 'peertube' 220const SERVER_ACCOUNT_NAME = 'peertube'
221 221
222const ACTIVITY_PUB = { 222const ACTIVITY_PUB = {
223 ACCEPT_HEADERS: [ 223 POTENTIAL_ACCEPT_HEADERS: [
224 'application/activity+json, application/ld+json', 224 'application/activity+json',
225 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' 225 'application/ld+json'
226 ], 226 ],
227 ACCEPT_HEADER: '', 227 ACCEPT_HEADER: 'application/activity+json, application/ld+json',
228 PUBLIC: 'https://www.w3.org/ns/activitystreams#Public', 228 PUBLIC: 'https://www.w3.org/ns/activitystreams#Public',
229 COLLECTION_ITEMS_PER_PAGE: 10, 229 COLLECTION_ITEMS_PER_PAGE: 10,
230 FETCH_PAGE_LIMIT: 100, 230 FETCH_PAGE_LIMIT: 100,
@@ -235,7 +235,6 @@ const ACTIVITY_PUB = {
235 MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ] 235 MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ]
236 } 236 }
237} 237}
238ACTIVITY_PUB.ACCEPT_HEADER = ACTIVITY_PUB.ACCEPT_HEADERS[0]
239 238
240// --------------------------------------------------------------------------- 239// ---------------------------------------------------------------------------
241 240